title: Set Window owner inside of an UserControl in WPF
body: <p>I have an <code>UserControl</code> that shows a window without an icon in the Taskbar, the problem is when the main window lost the focus and get it again the window without taskbar icon is behind the main window and is difficult show it in front again, this issue is solved using <code>window.Owner = this;</code> when the class is a window, but when is <code>UserControl</code> or other type (e.g. <code>ListBoxItem</code>, <code>Viewbox</code>) I can't do this. I tried to do this <code>control.Owner = (Window)this;</code> but the result throws an exception that a <code>Grid</code> cannot be converted into a <code>Window</code></p>