I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the containing window from the UserControl.
MainWindow
UserControl
I hav
Another way:
var main = App.Current.MainWindow as MainWindow;