Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // WPF
- var view = new MainView();
- // Get the handle to the non-WPF owner window
- var ownerWindowHandle = Mastercam.Support.UI.MastercamWindow.GetHandle().Handle;
- // Set the owned WPF window’s Owner property with the non-WPF owner window
- var helper = new System.Windows.Interop.WindowInteropHelper(view) { Owner = ownerWindowHandle };
- view.Show();
- // WinForms
- var winView = new TestView() { TopLevel = true} ;
- winView.Show(Mastercam.Support.UI.MastercamWindow.GetHandle());
Add Comment
Please, Sign In to add comment