WPF is always on top for parents only

I need my window to always be on top, but only for his parent.

Is it possible to make the window always on top only for the parent?

+6
source share
1 answer

Set the Owner property of your child window by pointing to the window that opens. Thus, he will always be on top of his parent.

 SomeWindow childWindow = new SomeWindow(); childWindow.Owner = this; childWindow.Show(); 
+12
source

Source: https://habr.com/ru/post/893978/


All Articles