C# – How to implement a modal window in an XBAP application

c++modal-dialogwpfxbap

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?

Best Solution

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