'How to make a window modal to Page in WPF?
I know how to make a Window Modal to a Window
I have a Page as my main window. I want to open a window and make it Modal to the Page. Is it possible? Does Page class have API's to support my requirement? If yes a sample illustration will be nice!!
Solution 1:[1]
This is very simple (unless I've misunderstood your issue)
Window win = new MainWindow();
win.ShowDialog();
Solution 2:[2]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Dean Chalk |
Solution 2 | Glorfindel |