Example #1
0
 /// <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);
 }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <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));
 }
Example #4
0
 /// <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));
 }
Example #5
0
 /// <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");
        }
Example #7
0
 /// <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);
 }
Example #8
0
 /// <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);
 }
Example #9
0
 static NavigationViewItem()
 {
     SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty);
     FocusableProperty.OverrideDefaultValue <NavigationViewItem>(true);
     ClickModeProperty.OverrideDefaultValue <NavigationViewItem>(ClickMode.Release);
 }
Example #10
0
 /// <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);
 }
Example #12
0
 /// <summary>
 /// Initializes static members of the <see cref="ListBoxItem"/> class.
 /// </summary>
 static ListBoxItem()
 {
     SelectableMixin.Attach <ListBoxItem>(IsSelectedProperty);
     PressedMixin.Attach <ListBoxItem>();
     FocusableProperty.OverrideDefaultValue <ListBoxItem>(true);
 }
Example #13
0
 static SelectableThumb()
 {
     SelectableMixin.Attach <SelectableThumb <TCustomValue> >(IsSelectedProperty);
     PressedMixin.Attach <SelectableThumb <TCustomValue> >();
 }
Example #14
0
 static NavigationViewItem()
 {
     SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty);
 }
Example #15
0
 static AuraTrack()
 {
     SelectableMixin.Attach <AuraTrack>(IsSelectedProperty);
 }