예제 #1
0
 /// <summary>
 /// Initializes static members of the <see cref="ContentControl"/> class.
 /// </summary>
 static HeaderedSelectingItemsControl()
 {
     ContentControlMixin.Attach <HeaderedSelectingItemsControl>(
         HeaderProperty,
         x => x.LogicalChildren,
         "PART_HeaderPresenter");
 }
예제 #2
0
 /// <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");
        }
예제 #4
0
 /// <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");
 }
예제 #5
0
 /// <summary>
 /// Initializes static members of the <see cref="ContentControl"/> class.
 /// </summary>
 static ContentControl()
 {
     ContentControlMixin.Attach <ContentControl>(ContentProperty, x => x.LogicalChildren);
 }
예제 #6
0
 static TestControl()
 {
     ContentControlMixin.Attach <TestControl>(Content1Property, x => x.LogicalChildren, "Content_1_Presenter");
     ContentControlMixin.Attach <TestControl>(Content2Property, x => x.LogicalChildren, "Content_2_Presenter");
 }