Esempio n. 1
0
        private void OnIsOpenPropertyChanged(DependencyPropertyChangedEventArgs args)
        {
            if (IsOpen)
            {
                //Reset the close reason to the default value of programmatic.
                m_lastCloseReason = InfoBarCloseReason.Programmatic;

                UpdateVisibility();
            }
            else
            {
                RaiseClosingEvent();
            }
        }
Esempio n. 2
0
 internal InfoBarClosingEventArgs(InfoBarCloseReason reason) =>
Esempio n. 3
0
 private void OnCloseButtonClick(object sender, RoutedEventArgs args)
 {
     CloseButtonClick?.Invoke(this, null);
     m_lastCloseReason = InfoBarCloseReason.CloseButton;
     IsOpen            = false;
 }
 internal InfoBarClosedEventArgs(InfoBarCloseReason reason)
 {
     Reason = reason;
 }