예제 #1
0
파일: InfoBar.cs 프로젝트: chenss3/InfoBar
        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();
        }
예제 #2
0
 private async void Test_Closed(InfoBar sender, InfoBarClosedEventArgs args)
 {
     await new MessageDialog("Thank you, mate im closed").ShowAsync();
 }
예제 #3
0
 private void Test_Closing(InfoBar sender, InfoBarClosingEventArgs args)
 {
     args.Cancel = cancel;
 }