Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 private async void Test_Closed(InfoBar sender, InfoBarClosedEventArgs args)
 {
     await new MessageDialog("Thank you, mate im closed").ShowAsync();
 }
Exemplo n.º 3
0
 private void Test_Closing(InfoBar sender, InfoBarClosingEventArgs args)
 {
     args.Cancel = cancel;
 }