Is it possible to display a Modal window from a WPF user control that is a child of ElementHost and set the owner / parent of the modal window to the containing Form control?
I assume that you cannot do this, because the Owner property accepts an instance of Window, where I want to set it to the parent of the control element, which is the old element of the Windows Forms Form. Just wondering if there is a job or an alternative approach.
The problem is when the modal window is displayed and the user switches to another application, then back, the modal window is hidden and the user cannot interact with the main window. This is because Windows thinks that the modal window is still displayed when it is not, because there are no Owner / Parent relationships established.
Cheers, James.
wpf showdialog elementhost
James
source share