ShowDialog makes app window disappear from windows' Alt-Tab list?

后端 未结 1 1666
清酒与你
清酒与你 2021-01-03 02:02

i am new to WPF, and i am trying to open a modal dialog from inside my main window:


public partial class MainWindow : Window
{
    protected void OpenComman         


        
1条回答
  •  一生所求
    2021-01-03 02:39

    This is because of the modal dialog - you cannot Alt-Tab back to the application until the dialog is closed. Since the WindowStyle is set as ToolWindow, it won't show up in Alt-Tab. However, if it were a regular window, the dialog window would show up in Alt-Tab.

    Note that this isn't a WPF issue - it is consistent with, for example, a Windows Forms application.

    0 讨论(0)
提交回复
热议问题