I have created a user control , i'm able to close the whole app... but i want to close only the user control. I have not added the user control in the app, and removed the user control from the app..
this is the code i used in mvvm to open the user contol
Window window = new Window
{
Title = "Sl",
Content = new View,
DataContext = new ViewModel()
};
this is the code i used in mvvm to open the user contol
Window window = new Window
{
Title = "Sl",
Content = new View,
DataContext = new ViewModel()
};