Pregunta

It is known, WPF dialog needs property 'Owner' to be topmost only for the current application.

How to handle the situation if the current application is a WinForms one that has a WPF-dialog?

¿Fue útil?

Solución 2

Here's the answer http://blogs.msdn.com/b/mhendersblog/archive/2005/10/04/476921.aspx

It can be done using WindowsInteropHelper.

Otros consejos

Take a look at the Window.Topmost Property at MSDN.

Setting Topmost="True" on the dialogue window should do the trick.

You may want to also set this in a Window.Deactivated and Window.LostFocus event handlers.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top