/// <summary> /// Initializes static members of the <see cref="ContentControl"/> class. /// </summary> static HeaderedSelectingItemsControl() { ContentControlMixin.Attach <HeaderedSelectingItemsControl>( HeaderProperty, x => x.LogicalChildren, "PART_HeaderPresenter"); }
/// <summary> /// Initializes static members of the <see cref="TabControl"/> class. /// </summary> static TabControl() { SelectionModeProperty.OverrideDefaultValue <TabControl>(SelectionMode.AlwaysSelected); ItemsPanelProperty.OverrideDefaultValue <TabControl>(DefaultPanel); AffectsMeasure <TabControl>(TabStripPlacementProperty); ContentControlMixin.Attach <TabControl>( SelectedContentProperty, x => x.LogicalChildren, "PART_SelectedContentHost"); }
/// <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="ContentControl"/> class. /// </summary> static ContentControl() { ContentControlMixin.Attach <ContentControl>(ContentProperty, x => x.LogicalChildren); PseudoClass <ContentControl, object>(ContentProperty, x => x != null, ":valid"); PseudoClass <ContentControl, object>(ContentProperty, x => x == null, ":invalid"); }
/// <summary> /// Initializes static members of the <see cref="ContentControl"/> class. /// </summary> static ContentControl() { ContentControlMixin.Attach <ContentControl>(ContentProperty, x => x.LogicalChildren); }
static TestControl() { ContentControlMixin.Attach <TestControl>(Content1Property, x => x.LogicalChildren, "Content_1_Presenter"); ContentControlMixin.Attach <TestControl>(Content2Property, x => x.LogicalChildren, "Content_2_Presenter"); }