/// <summary> /// Initializes static members of the <see cref="PDFView"/> class. /// </summary> static PDFView() { DefaultStyleKeyProperty.OverrideMetadata(typeof(PDFView), new FrameworkPropertyMetadata(typeof(PDFView))); BackgroundProperty.OverrideMetadata(typeof(PDFView), new FrameworkPropertyMetadata(Brushes.DarkGray)); BorderBrushProperty.OverrideMetadata(typeof(PDFView), new FrameworkPropertyMetadata(Brushes.Black)); BorderThicknessProperty.OverrideMetadata(typeof(PDFView), new FrameworkPropertyMetadata(new Thickness(1))); }
static PDFThumbnailView() { DefaultStyleKeyProperty.OverrideMetadata(typeof(PDFThumbnailView), new FrameworkPropertyMetadata(typeof(PDFThumbnailView))); BackgroundProperty.OverrideMetadata(typeof(PDFThumbnailView), new FrameworkPropertyMetadata(Brushes.White)); BorderBrushProperty.OverrideMetadata(typeof(PDFThumbnailView), new FrameworkPropertyMetadata(Brushes.Black)); BorderThicknessProperty.OverrideMetadata(typeof(PDFThumbnailView), new FrameworkPropertyMetadata(new Thickness(0.5d))); }
/// <summary> /// Static constructor /// </summary> static RibbonWindow() { DefaultStyleKeyProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(typeof(RibbonWindow))); BorderThicknessProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(new Thickness(1))); WindowStyleProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(WindowStyle.None)); }
static RibbonSplitMenuItem() { Type ownerType = typeof(RibbonSplitMenuItem); DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType)); BorderThicknessProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new Thickness(), new PropertyChangedCallback(OnBorderThicknessChanged))); IsCheckedProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new PropertyChangedCallback(OnIsCheckedChanged))); }
/// <summary> /// The static constructor. /// </summary> static DragResizer() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DragResizer), new FrameworkPropertyMetadata(typeof(DragResizer))); // Makes it hollow by default except border. BorderThicknessProperty.OverrideMetadata(typeof(DragResizer), new FrameworkPropertyMetadata(new Thickness(4))); BackgroundProperty.OverrideMetadata(typeof(DragResizer), new FrameworkPropertyMetadata(null)); }
/// <summary> /// Static constructor /// </summary> static RibbonWindow() { DefaultStyleKeyProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(typeof(RibbonWindow))); BorderThicknessProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(new Thickness(1))); WindowStyleProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(WindowStyle.None)); AllowsTransparencyProperty.OverrideMetadata(typeof(RibbonWindow), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox)); }
/// <summary> /// Initializes static members of the RibbonSplitButton class. It also overrides the default style. /// </summary> static RibbonSplitButton() { Type ownerType = typeof(RibbonSplitButton); DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType)); BorderThicknessProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new Thickness(), new PropertyChangedCallback(OnBorderThicknessChanged))); ControlSizeDefinitionProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnBorderThicknessChanged))); IsInControlGroupProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(false, new PropertyChangedCallback(OnBorderThicknessChanged)), RibbonControlService.IsInControlGroupPropertyKey); }
static WindowChromeWindow() { DefaultStyleKeyProperty.OverrideMetadata(typeof(WindowChromeWindow), new FrameworkPropertyMetadata(typeof(WindowChromeWindow))); BorderThicknessProperty.OverrideMetadata(typeof(WindowChromeWindow), new FrameworkPropertyMetadata(new Thickness(1))); WindowStyleProperty.OverrideMetadata(typeof(WindowChromeWindow), new FrameworkPropertyMetadata(WindowStyle.None)); AllowsTransparencyProperty.OverrideMetadata(typeof(WindowChromeWindow), new FrameworkPropertyMetadata(false)); }
static CustomDateTimePicker() { DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomDateTimePicker), new FrameworkPropertyMetadata(typeof(CustomDateTimePicker))); BorderBrushProperty.OverrideMetadata(typeof(CustomDateTimePicker), new FrameworkPropertyMetadata(new SolidColorBrush(Colors.DeepSkyBlue))); BorderThicknessProperty.OverrideMetadata(typeof(CustomDateTimePicker), new FrameworkPropertyMetadata(new Thickness(1))); SelectedDateProperty.OverrideMetadata(typeof(CustomDateTimePicker), new FrameworkPropertyMetadata(DateTime.Now.Date, SelectedDateChangedCb)); }
static AyGaosiBackgroundLayer() { BorderBrushProperty.OverrideMetadata( typeof(AyGaosiBackgroundLayer), new FrameworkPropertyMetadata(new PropertyChangedCallback(BorderBrushPropertyChanged))); BorderThicknessProperty.OverrideMetadata( typeof(AyGaosiBackgroundLayer), new FrameworkPropertyMetadata(new PropertyChangedCallback(BorderThicknessPropertyChanged))); }
static TabControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(typeof(TabControl))); BorderThicknessProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata() { DefaultValue = new Thickness(1), CoerceValueCallback = OnCoerceBorderThickness, PropertyChangedCallback = OnBorderThicknessChanged, }); }
static CircularProgressBar() { DefaultStyleKeyProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(typeof(CircularProgressBar))); MinimumProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(0D)); MaximumProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(100D)); SmallChangeProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(1D)); LargeChangeProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(10D)); BorderBrushProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(Brushes.LightGray)); BorderThicknessProperty.OverrideMetadata(typeof(CircularProgressBar), new FrameworkPropertyMetadata(new Thickness(10), OnBorderThicknessChanged)); }
static LiveToolTip() { var thisType = typeof(LiveToolTip); DefaultStyleKeyProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(thisType)); FocusableProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(false)); IsHitTestVisibleProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(false)); BackgroundProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(Brushes.White)); OpacityProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(1.0)); BorderBrushProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(Brushes.DarkGray)); BorderThicknessProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(new Thickness(1.0))); }
set => SetValue(BorderThicknessProperty, value);
static NullTextBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(NullTextBox), new FrameworkPropertyMetadata(typeof(NullTextBox))); BorderThicknessProperty.OverrideMetadata(typeof(NullTextBox), new FrameworkPropertyMetadata(new Thickness(1))); BorderBrushProperty.OverrideMetadata(typeof(NullTextBox), new FrameworkPropertyMetadata(Brushes.Gray)); }
static ToggleStrip() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ToggleStrip), new FrameworkPropertyMetadata(typeof(ToggleStrip))); BorderThicknessProperty.OverrideMetadata(typeof(ToggleStrip), new FrameworkPropertyMetadata(new Thickness(1))); BorderBrushProperty.OverrideMetadata(typeof(ToggleStrip), new FrameworkPropertyMetadata(CoerceUtils.CoerceBrushFrom("#202020"))); }