public void OnClosing(object sender, InfoBarClosingEventArgs args) { EventListBox.Items.Add("Closing: " + args.Reason); if (CancelCheckBox.IsChecked.Value) { args.Cancel = true; } }
private void Test_Closing(InfoBar sender, InfoBarClosingEventArgs args) { args.Cancel = cancel; }