Monday, June 27, 2011

WPF stop closing the window or cancelling from closing the window





void MyWPFWindow_Closing(object sender, CancelEventArgs e)
{
e.Cancel = true; // setting to true will not close the window
}




No comments:

Post a Comment