/// <summary> /// Initializes static members of the <see cref="TreeViewItem"/> class. /// </summary> static TreeViewItem() { SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <TreeViewItem>(true); ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel); RequestBringIntoViewEvent.AddClassHandler <TreeViewItem>(x => x.OnRequestBringIntoView); }
/// <summary> /// overrides some default values /// </summary> static IndexListItem() { SelectableMixin.Attach <IndexListItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <IndexListItem>(true); RequestBringIntoViewEvent.AddClassHandler <IndexListItem>((x, e) => x.OnRequestBringIntoView(e)); DataContextProperty.Changed.AddClassHandler <IndexListItem>((x, e) => OnDataContextChanged(x, e)); }
/// <summary> /// Initializes static members of the <see cref="TabItem"/> class. /// </summary> static TabItem() { SelectableMixin.Attach <TabItem>(IsSelectedProperty); PressedMixin.Attach <TabItem>(); FocusableProperty.OverrideDefaultValue(typeof(TabItem), true); DataContextProperty.Changed.AddClassHandler <TabItem>((x, e) => x.UpdateHeader(e)); }
/// <summary> /// Initializes static members of the <see cref="TreeViewItem"/> class. /// </summary> static TreeViewItem() { SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <TreeViewItem>(true); ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel); ParentProperty.Changed.AddClassHandler <TreeViewItem>((o, e) => o.OnParentChanged(e)); RequestBringIntoViewEvent.AddClassHandler <TreeViewItem>((x, e) => x.OnRequestBringIntoView(e)); }
/// <summary> /// Initializes static members of the <see cref="MenuItem"/> class. /// </summary> static MenuItem() { SelectableMixin.Attach <MenuItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <MenuItem>(true); ItemsPanelProperty.OverrideDefaultValue <MenuItem>(DefaultPanel); ClickEvent.AddClassHandler <MenuItem>(x => x.OnClick); SubmenuOpenedEvent.AddClassHandler <MenuItem>(x => x.OnSubmenuOpened); IsSubMenuOpenProperty.Changed.AddClassHandler <MenuItem>(x => x.SubMenuOpenChanged); AccessKeyHandler.AccessKeyPressedEvent.AddClassHandler <MenuItem>(x => x.AccessKeyPressed); }
/// <summary> /// Initializes static members of the <see cref="ListBoxItem"/> class. /// </summary> static HamburgerMenuItem() { SelectableMixin.Attach <HamburgerMenuItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <HamburgerMenuItem>(true); AffectsMeasure <HamburgerMenuItem>(IconProperty, IconTemplateProperty, DesiredIconSizeProperty, DesiredContentSizeProperty ); ContentControlMixin.Attach <HamburgerMenuItem>(IconProperty, x => x.LogicalChildren, "PART_IconPresenter"); }
/// <summary> /// Initializes static members of the <see cref="MenuItem"/> class. /// </summary> static MenuItem() { SelectableMixin.Attach <MenuItem>(IsSelectedProperty); CommandProperty.Changed.Subscribe(CommandChanged); FocusableProperty.OverrideDefaultValue <MenuItem>(true); IconProperty.Changed.AddClassHandler <MenuItem>(x => x.IconChanged); IsSelectedProperty.Changed.AddClassHandler <MenuItem>(x => x.IsSelectedChanged); ItemsPanelProperty.OverrideDefaultValue <MenuItem>(DefaultPanel); ClickEvent.AddClassHandler <MenuItem>(x => x.OnClick); SubmenuOpenedEvent.AddClassHandler <MenuItem>(x => x.OnSubmenuOpened); IsSubMenuOpenProperty.Changed.AddClassHandler <MenuItem>(x => x.SubMenuOpenChanged); }
/// <summary> /// Initializes static members of the <see cref="TreeViewItem"/> class. /// </summary> static TreeViewItem() { SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <TreeViewItem>(true); ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel); }
static NavigationViewItem() { SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <NavigationViewItem>(true); ClickModeProperty.OverrideDefaultValue <NavigationViewItem>(ClickMode.Release); }
/// <summary> /// Initializes static members of the <see cref="TabItem"/> class. /// </summary> static TabItem() { SelectableMixin.Attach <TabItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue(typeof(TabItem), true); }
static TestControl() { SelectableMixin.Attach <TestControl>(IsSelectedProperty); }
/// <summary> /// Initializes static members of the <see cref="ListBoxItem"/> class. /// </summary> static ListBoxItem() { SelectableMixin.Attach <ListBoxItem>(IsSelectedProperty); PressedMixin.Attach <ListBoxItem>(); FocusableProperty.OverrideDefaultValue <ListBoxItem>(true); }
static SelectableThumb() { SelectableMixin.Attach <SelectableThumb <TCustomValue> >(IsSelectedProperty); PressedMixin.Attach <SelectableThumb <TCustomValue> >(); }
static NavigationViewItem() { SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty); }
static AuraTrack() { SelectableMixin.Attach <AuraTrack>(IsSelectedProperty); }