I am trying to access parent window from user control.
userControl1 uc1 = new userControl1(); mainGrid.Children.Add(uc1);
through this co
Have you tried
Window yourParentWindow = Window.GetWindow(userControl1);