private void Button_Cancel_Click(object sender, RoutedEventArgs e) { PopupDialog.OnCancelInvoke(); PopupDialog.Close(); }