Наследование: System.Windows.Controls.Primitives.ToggleButton
Пример #1
0
 private bool ReplaceCheckedSidebarButton(RoutedEventArgs e, LockableToggleButton replacement)
 {
     if (_toggledSidebarButton != replacement)
     {
         if (_toggledSidebarButton != null)
         {
             _toggledSidebarButton.Locked    = false;
             _toggledSidebarButton.IsChecked = false;
         }
         _toggledSidebarButton        = replacement;
         _toggledSidebarButton.Locked = true;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #2
0
 private bool ReplaceCheckedSidebarButton(RoutedEventArgs e, LockableToggleButton replacement)
 {
     if (_toggledSidebarButton != replacement)
     {
         if (_toggledSidebarButton != null)
         {
             _toggledSidebarButton.Locked = false;
             _toggledSidebarButton.IsChecked = false;
         }
         _toggledSidebarButton = replacement;
         _toggledSidebarButton.Locked = true;
         return true;
     }
     else
     {
         return false;
     }
 }