I have a function in WPF MainWindow1.Xaml when the application shuts down. But in unknown cases, the user can close the application in another way, and then use the "close file" button. I just need to know in the Close method if the current MainWindow1.xaml is already installed or not. But I could not find any property.
Can you help me?
source share