[英]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?
Page类是否具有API来支持我的要求? If yes a sample illustration will be nice!!
如果是的话,样本插图将是不错的!
This is very simple (unless I've misunderstood your issue) 这很简单(除非我误解了您的问题)
Window win = new MainWindow();
win.ShowDialog();
These links may help: 这些链接可能有助于:
http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/3c3e1a4a-6b26-435c-b59b-2e2f1766f52d http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/3c3e1a4a-6b26-435c-b59b-2e2f1766f52d
http://blogs.msdn.com/b/mitsu/archive/2007/05/07/how-to-simulate-modal-windows-inside-a-single-wpf-window-using-anonymous-methods.aspx http://blogs.msdn.com/b/mitsu/archive/2007/05/07/how-to-simulate-modal-windows-inside-a-single-wpf-window-using-anonymous-methods.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.