I am developing a WPF application and trying to use XamDialogWindow controls for some modal configuration dialogs. My use case is such that it would be useful for a modal dialog window to launch another modal dialog window (it helps keep the currently accessible interface less cluttered/more focused). We are using Prism and all of our dialogs are confined to a specific region, and all dialog windows exist as singletons that start hidden. When dialogs are not modal, everything works as expected: sub dialogs are launched and the windows coexist happily. However, when the primary and secondary config windows are both launched as modal windows, it generates a StackOverflowException when Show() is called on the second window. I tried this with a bare-bones application and had the same issue.
Ok, I guess this is a valid limitation, so I try a workaround: I set the first window's IsModal value to false prior to calling Show() on the second window. Second window appears (awesome) but the first window disappears (oops). What's more, I can't seem to make the first window reappear while its IsModal property is set to false.
So my questions are as follows:
If either is possible, that would be sufficient to solve my problem.
Thanks in advance!
Hello Marc,
I am just checking if you require any further assistance on the matter.
Hi Marc,
Thank you for your post. I have been looking into your question and you cannot have more than one modal window on the same window/page(in your scenario region).
Let me know, if you need any further assistance on this matter.