Exemplo n.º 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);
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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");
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 9
0
 static NavigationViewItem()
 {
     SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty);
     FocusableProperty.OverrideDefaultValue <NavigationViewItem>(true);
     ClickModeProperty.OverrideDefaultValue <NavigationViewItem>(ClickMode.Release);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 13
0
 static SelectableThumb()
 {
     SelectableMixin.Attach <SelectableThumb <TCustomValue> >(IsSelectedProperty);
     PressedMixin.Attach <SelectableThumb <TCustomValue> >();
 }
Exemplo n.º 14
0
 static NavigationViewItem()
 {
     SelectableMixin.Attach <NavigationViewItem>(IsSelectedProperty);
 }
Exemplo n.º 15
0
 static AuraTrack()
 {
     SelectableMixin.Attach <AuraTrack>(IsSelectedProperty);
 }