private static void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { DependencyProperty property = e.Property; InfoBar infoBar = d as InfoBar; if (property == SeverityProperty) { infoBar.UpdateSeverityState(); } else if (property == ActionButtonContentProperty || property == ShowCloseButtonProperty) { infoBar.UpdateButtonsState(); } else if (property == IsOpenProperty) { infoBar.OnIsOpenChanged(); } else if (property == IconSourceProperty) { infoBar.OnIconChanged(); } else if (property == MessageProperty) { infoBar.checkMessage(); } infoBar.UpdateMargins(); }
private async void Test_Closed(InfoBar sender, InfoBarClosedEventArgs args) { await new MessageDialog("Thank you, mate im closed").ShowAsync(); }
private void Test_Closing(InfoBar sender, InfoBarClosingEventArgs args) { args.Cancel = cancel; }