问题
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