Wpf – Child wpf window above parent window

wpf

I have WPF application with main window. I want to create child WPF window which always must be above ONLY parent window. If I set TopMost property for new window then window is above ALL nonTopMost windows on desktop. It's not what I want.

Best Answer

Set the Owner property of the child window so that it refers to the parent window.

child.Owner = parent;