Вопрос

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?

Это было полезно?

Решение 2

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

It can be done using WindowsInteropHelper.

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top