Search code examples
wpfwinformstopmost

How to keep WPF dialog topmost only in my WinForms app?


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?


Solution

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

    It can be done using WindowsInteropHelper.