开发者

How do I invoke a modal window from a wpf page?

开发者 https://www.devze.com 2023-03-24 23:34 出处:网络
How do I invoke a modal window from a wpf page? Window.showDialog() makes the window modal when it is invoked from a parent Window, however when invoked from a Page, the modal behaviour disappears. I

How do I invoke a modal window from a wpf page? Window.showDialog() makes the window modal when it is invoked from a parent Window, however when invoked from a Page, the modal behaviour disappears. I tried using a PopUp co开发者_开发问答ntrol, but it doesnt appear to be as customizable as a window.


I am not sure how are you calling the window, but calling new Window().ShowDialog() from within a page inside frame, makes the new window modal to the whole application.

0

精彩评论

暂无评论...
验证码 换一张
取 消