[英]Windows Within An App
My C# WPF application has multiple windows, which may be open at once. 我的C#WPF应用程序具有多个窗口,这些窗口可以一次打开。 One of these windows is for Notifications, and must remain Topmost (or like), until it is acknowledged.
这些窗口之一用于“通知”,并且在确认之前必须保持“最高”(或类似状态)。 The problem I am having is that when I set
Topmost=true;
我遇到的问题是,当我设置
Topmost=true;
the window will display on top, but later windows must be closed before the buttons on the Notification window can be clicked. 该窗口将显示在顶部,但必须先关闭以后的窗口,然后才能单击“通知”窗口上的按钮。
I have tried, BringIntoView();
我试过了,
BringIntoView();
, Activate();
,
Activate();
, Focus();
,
Focus();
,and Calling Show();
,然后调用
Show();
again. 再次。
All of these fail, what am I missing? 所有这些都失败了,我想念什么?
Thanks in advance 提前致谢
Are the other windows invoked modally? 其他窗口是否被模态调用? Eg with
window.ShowDialog()
? 例如
window.ShowDialog()
? Doing so will trump any "topmost" settings of non-modal windows. 这样做将胜过非模式窗口的任何“最高”设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.