One of my Menu option on the MainPage.XAML is to bring up a dialog Window. The dialog window contains a User control. Based on some condition we need to close the dialog from the user control. How do we get hold of the running Window in the user controls and then close it.