예제 #1
0
 static AppBarWindow()
 {
     ShowInTaskbarProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false));
     MinHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MinWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MaxHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     MaxWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
 }
예제 #2
0
        static IndicatorObject()
        {
            var ownerType = typeof(IndicatorObject);

            FocusVisualStyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null));
            DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
            MinWidthProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(5.0));
            MinHeightProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(5.0));
        }
 static VisibleRowDefinition()
 {
     HeightProperty.AddOwner(typeof(VisibleRowDefinition),
                             new FrameworkPropertyMetadata(HeightProperty.DefaultMetadata.DefaultValue, OnHeightChanged));
     MinHeightProperty.AddOwner(typeof(VisibleRowDefinition),
                                new FrameworkPropertyMetadata(MinHeightProperty.DefaultMetadata.DefaultValue, OnMinHeightChanged));
     MaxHeightProperty.AddOwner(typeof(VisibleRowDefinition),
                                new FrameworkPropertyMetadata(MaxHeightProperty.DefaultMetadata.DefaultValue, OnMaxHeightChanged));
 }
예제 #4
0
 static RowDefinitionExtended()
 {
     VisibleProperty = DependencyProperty.Register("Visible", typeof(bool), typeof(RowDefinitionExtended),
                                                   new PropertyMetadata(true, new PropertyChangedCallback(OnVisibleChanged)));
     HeightProperty.OverrideMetadata(typeof(RowDefinitionExtended),
                                     new FrameworkPropertyMetadata(new GridLength(1, GridUnitType.Star), null, new CoerceValueCallback(CoerceHeight)));
     MinHeightProperty.OverrideMetadata(typeof(RowDefinitionExtended),
                                        new FrameworkPropertyMetadata((double)0, null, new CoerceValueCallback(CoerceMinHeight)));
 }
예제 #5
0
파일: AvalonDock.cs 프로젝트: quitec/ilspy
 static Resizer()
 {
     //This OverrideMetadata call tells the system that this element wants to provide a style that is different than its base class.
     //This style is defined in themes\generic.xaml
     DefaultStyleKeyProperty.OverrideMetadata(typeof(Resizer), new FrameworkPropertyMetadata(typeof(Resizer)));
     MinWidthProperty.OverrideMetadata(typeof(Resizer), new FrameworkPropertyMetadata(6.0, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
     MinHeightProperty.OverrideMetadata(typeof(Resizer), new FrameworkPropertyMetadata(6.0, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
     HorizontalAlignmentProperty.OverrideMetadata(typeof(Resizer), new FrameworkPropertyMetadata(HorizontalAlignment.Stretch, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
     VerticalAlignmentProperty.OverrideMetadata(typeof(Resizer), new FrameworkPropertyMetadata(VerticalAlignment.Stretch, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
 }
예제 #6
0
 static AppBarWindow()
 {
     ShowInTaskbarProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false));
     MinHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MinWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MaxHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     MaxWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     IgnorePeekProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(true, OnIgnorePeekChangedCallback));
     ShowInAltTabProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false, OnShowInAltTabPropertyChangedCallback));
 }
        /// <summary>
        ///     Instantiates global information.
        /// </summary>
        static DataGridCellsPresenter()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(typeof(DataGridCellsPresenter)));
            ItemsPanelProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(new ItemsPanelTemplate(new FrameworkElementFactory(typeof(DataGridCellsPanel)))));
            FocusableProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(false));

            HeightProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(OnNotifyHeightPropertyChanged, OnCoerceHeight));
            MinHeightProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(OnNotifyHeightPropertyChanged, OnCoerceMinHeight));

            VirtualizingStackPanel.IsVirtualizingProperty.OverrideMetadata(
                typeof(DataGridCellsPresenter),
                new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
            VirtualizingStackPanel.VirtualizationModeProperty.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(VirtualizationMode.Recycling));
        }
예제 #8
0
        static RowDefinitionCollapsable()
        {
            HeightProperty.OverrideMetadata(
                typeof(RowDefinitionCollapsable),
                new FrameworkPropertyMetadata(
                    new GridLength(1, GridUnitType.Star),
                    null,
                    (d, v) => ((RowDefinitionCollapsable)d).Visible ? v : new GridLength(0)));


            MinHeightProperty.OverrideMetadata(
                typeof(RowDefinitionCollapsable),
                new FrameworkPropertyMetadata(0d, null, (d, v) => ((RowDefinitionCollapsable)d).Visible ? v : 0d));
        }
예제 #9
0
 static TitleBar()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(TitleBar), new FrameworkPropertyMetadata(typeof(TitleBar)));
     IsTabStopProperty.OverrideMetadata(typeof(TitleBar), new FrameworkPropertyMetadata(false));
     MinHeightProperty.OverrideMetadata(typeof(TitleBar), new FrameworkPropertyMetadata(28d));
 }
예제 #10
0
 set => this.SetValue(MinHeightProperty, value);
예제 #11
0
 static TreeGridRow()
 {
     MinHeightProperty.OverrideMetadata(typeof(TreeGridRow), new FrameworkPropertyMetadata(14d));
 }
 static HidableRowDefinition()
 {
     VisibleProperty = DependencyProperty.Register("Visible", typeof(bool), typeof(HidableRowDefinition), new PropertyMetadata(true, OnVisibleChanged));
     HeightProperty.OverrideMetadata(typeof(HidableRowDefinition), new FrameworkPropertyMetadata(new GridLength(1, GridUnitType.Star), null, CoerceHeight));
     MinHeightProperty.OverrideMetadata(typeof(HidableRowDefinition), new FrameworkPropertyMetadata((double)0, null, CoerceMinHeight));
 }