How to make a WPF window be on top of all other windows of my app (not system wide)?

后端 未结 19 2771
南笙
南笙 2020-12-14 05:42

I want my window to be on top of all other windows in my application only. If I set the TopMost property of a window, it becomes on top of all windows of al

19条回答
  •  时光说笑
    2020-12-14 05:53

    You can add this to your windows tags

    WindowStartupLocation="CenterScreen"
    

    Then you can also display it if you want your users to acknowledge it in order to proceed

    YourWindow.ShowDialog();
    

    First try it without TopMost parameters and see the results.

提交回复
热议问题