当前位置:网站首页>Uwp confirms whether there is pop-up display
Uwp confirms whether there is pop-up display
2022-06-21 22:33:00 【zLulus】
When the application already has a pop-up window , Show other pop-up windows , Will prompt
An asynchronous operation did not start normally .
Only a single ContentDialog can be open at any time.
at Windows.UI.Xaml.Controls.ContentDialog.ShowAsync()
at .......
at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
Solutions : Determine whether a pop-up window is currently displayed
protected bool IsAnyContentDialogOpen()
{
return VisualTreeHelper.GetOpenPopups(Window.Current).Count > 0;
}
perhaps
var openedpopups = VisualTreeHelper.GetOpenPopups(Window.Current);
foreach (var popup in openedpopups)
{
if(popup.Child is ContentDialog)
{
// Yes ContentDialog Pop up window displayed
}
}
Reference material
边栏推荐
- How to uninstall a package installed with the CONDA command
- tkinter中text文本与scroll滚动条关联
- WPF 选择文件夹
- 高项-立项管理
- ES7 create index template
- 利用for循环计算n!的值
- An Chaoyun was selected as one of the "top ten cloud computing solution providers" in the Asia Pacific region by cioreview in 2022
- C# 报错:未通过等待任务或访问任务的 Exception 属性观察到任务的异常。因此,终结器线程重新引发了未观察到的异常。
- IP guard printing control to prevent information disclosure of printing channels
- pi4j gpio针脚上拉电阻,下拉电阻概念
猜你喜欢

Leetcode question brushing: SF Technology Smart logistics Campus Technology Challenge

flutter系列之:flutter中的IndexedStack

nuxt ssr打包和部署

fork-join线程池

Matlab2020a使用App Designer如何导出exe

promise错误捕获处理——Promisifying技术

Jeu de boutons de force 4 (version MySQL)

【深入理解TcaplusDB技术】一键安装Tmonitor后台

Hiclotter|hic data visualization tool

【深入理解TcaplusDB技术】TcaplusDB导入数据
随机推荐
Pal2nal| how to run pal2nal from the command line
TRNA analysis using trnascan se
Common abbreviations and terms of mitochondrial genome
C# WindowFromPoint在64位程序中无效
FPGA之道——FPGA开发流程之项目方案与FPGA设计方案
Use the for loop to calculate n! Value of
An Chaoyun was selected as one of the "top ten cloud computing solution providers" in the Asia Pacific region by cioreview in 2022
[in depth understanding of tcapulusdb technology] tcapulusdb construction data
迅为iTOP-3568开发板安装 RKNN Toolkit Lite2
UEFI dual system + dual hard disk installation
Verilog参数例化时自动计算位宽的函数
MATLAB在做图像处理时容易出现的一个误区:为提高运算速度使用预先声明的零矩阵存储图像数据
【深入理解TcaplusDB技术】单据受理之表管理
Shell script simple syntax
Use the for loop to calculate the odd and even sums in 1-100 [method 1]
力扣刷题集结4(mysql版本)
Iqtree| software for constructing evolutionary tree
FPGA设计中RAM和ROM初始化的方法
关于lg(n!)的渐进紧确界
LeetCode-543-二叉树的直径