protected virtual void OnSelectionChanged(SelectionChangedEventArgs args)
        {
        }

 

 1  public TestTabControl()
 2         {
 3             KeyEventHandler handler = null;
 4             SelectionChangedEventHandler handler2 = null;
 5             this._updateIndex = true;
 6             this.SelectedIndex = -1;
 7 
 8             
 9             if (handler == null)
10             {
11                 handler = (sender, e) => this.OnKeyDown(e);
12             }
13             base.KeyDown += handler;
14 
15             //make child can override SelectionChanged event
16             if (handler2 == null)
17             {
18                 handler2 = (sender, e) => this.OnSelectionChanged(e);
19             }
20             this.SelectionChanged += handler2;
21 
22 
23             base.IsEnabledChanged += new DependencyPropertyChangedEventHandler(this.OnIsEnabledChanged);
24             base.DefaultStyleKey = typeof(TestTabControl);
25 
26         }

 

相关文章:

  • 2021-12-04
  • 2021-10-30
  • 2022-01-06
  • 2022-12-23
  • 2022-03-03
  • 2021-12-09
  • 2021-06-01
  • 2021-08-25
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-10-17
  • 2021-10-27
  • 2022-02-10
相关资源
相似解决方案