简体   繁体   English

应用内的Windows

[英]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.

相关问题 在Windows Phone应用程序中的MVVM中格式化数据 - Formatting Data in MVVM within Windows Phone app 是否可以在控制台窗口中运行Windows应用程序? - Is it possible to run a Windows app within a console window? 在Windows Phone应用中复制图像 - Copying an image within my Windows Phone App 在列表中拖放,Windows 8应用程序? - Drag and drop within list, windows 8 app? MediaElement可在WPF中工作,但不能在Windows 8.1 App中工作 - MediaElement working within WPF but not within Windows 8.1 App 如何在C#中的应用程序内运行Windows IoT应用程序 - How to run a Windows IoT app within an app in c# Windows 8应用程序-在应用程序内创建XML并将其发送到远程服务器 - Windows 8 App - Creating and sending XML to a remote server within an App 从另一个Windows运行时应用程序中打开Windows运行时(地铁)应用程序是否有任何限制? - Are there any restrictions on opening a Windows runtime (Metro) app from within another Windows runtime app? 值不在预期范围内-Windows 8.1 App - Value does not fall within the expected range - Windows 8.1 App 在Windows Phone的应用程序中以编程方式设置电话颜色主题 - Set phone color themes programmatically within app in Windows Phone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM