문제

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