I want to write a Rhino 5 plugin, that opens a WPF window.
var window = new System.Windows.Window();
window.Title = "My Window";
I DON’T want to set the owner window like this:
new WindowInteropHelper(window).Owner = RhinoApp.MainWindowHandle();
instead I want the window to have no owner, it just works better for this kind of dialog.
The dialog opens in front, if I run the command via console, but it opens in the back, if I run it via a custom toolbar. And it is not possible to bring it to the front. When I try to (using the taskbar or ALT+TAB), it flickers shortly and Rhino steals the focus, moving the dialog behind the Rhino window again.
It’s not WPF related, happens with WinForms, too.
What can I do, except setting the owner window or using topmost?