예제 #1
0
 private void OnHeaderButtonClick(object sender, RoutedEventArgs e)
 {
     var clickedStripItem = (sender as Button).DataContext as HeaderStripItem;
     if (clickedStripItem != SelectedItem)
     {
         SelectedItem = clickedStripItem;
         OnHeaderActivated(sender, e);
     }
 }
예제 #2
0
        private void OnHeaderButtonClick(object sender, RoutedEventArgs e)
        {
            var clickedStripItem = (sender as Button).DataContext as HeaderStripItem;

            if (clickedStripItem != SelectedItem)
            {
                SelectedItem = clickedStripItem;
                OnHeaderActivated(sender, e);
            }
        }