How to implement a modal window in an XBAP application

六眼飞鱼酱① 提交于 2019-12-24 09:07:18

问题


I have a XBAP application which has the following code in a Page:

Person newPerson = new Person();
PersonWindow personWindow = new PersonWindow(newPerson);            
personWindow.ShowDialog();

When this code is invoked from a XBAP page, the resultant window does not behave like a modal window.

How can it be changed to behave like one without a significant amount of changes?


回答1:


It seems, that you have to implement the "modality" on your own, by disabling all the other window controls. Here goes the discussion of that



来源:https://stackoverflow.com/questions/676234/how-to-implement-a-modal-window-in-an-xbap-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!