c# - Using Owner Handle in WPF window Show method -


in winforms have show(iwin32window owner) method show form based on owner handle passed show method.

i want have similar behavior in wpf window. wpf window doesn't have show method accepts owner handle.

another alternative found setting window.owner owner window , use window.show(). doing can assign wpf window owner. in case owner can winform or wpf window. how can achieve this?

setting owner property of window correct way of creating relationship between 2 wpf windows (as per remarks section of window.owner property msdn page).

however, if want set owner winforms form, have use windowinterophelper class:

windowinterophelper helper = new windowinterophelper(wpfwindow); helper.owner = form.handle; 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -