Hi All,
I am opening RadWindow with ShowDialog() from viewmodel. I am not able to detect close 'X' button event. I want to prompt user before closing.
My code looks like:
AssetViewModel.cs
var AssetWindow = new RadWindow
{
Header = "Asset Information",
Owner = Application.Current.MainWindow,
WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner,
Content = new UserControl()
};
AssetWindow.ShowDialog();
What is the best approach to detect close event, prompt user and proceed with user selected option i.e Yes/No
Any help would be appreciated,
Regards,
Prashant Kirpan