Ejemplo n.º 1
0
 /// <summary>
 /// Initializes static members of the <see cref="DropDown"/> class.
 /// </summary>
 static DropDown()
 {
     ItemsPanelProperty.OverrideDefaultValue <DropDown>(DefaultPanel);
     FocusableProperty.OverrideDefaultValue <DropDown>(true);
     SelectedItemProperty.Changed.AddClassHandler <DropDown>(x => x.SelectedItemChanged);
     KeyDownEvent.AddClassHandler <DropDown>(x => x.OnKeyDown, Interactivity.RoutingStrategies.Tunnel);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes static members of the <see cref="ComboBox"/> class.
 /// </summary>
 static ComboBox()
 {
     ItemsPanelProperty.OverrideDefaultValue <ComboBox>(DefaultPanel);
     FocusableProperty.OverrideDefaultValue <ComboBox>(true);
     SelectedItemProperty.Changed.AddClassHandler <ComboBox>((x, e) => x.SelectedItemChanged(e));
     KeyDownEvent.AddClassHandler <ComboBox>((x, e) => x.OnKeyDown(e), Interactivity.RoutingStrategies.Tunnel);
 }
Ejemplo n.º 3
0
 static MainWindow()
 {
     KeyDownEvent.AddClassHandler <MainWindow>(w => w.HandleKeyDown, RoutingStrategies.Tunnel);
 }