简体   繁体   中英

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!!

This is very simple (unless I've misunderstood your issue)

Window win = new MainWindow();
win.ShowDialog();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM