예제 #1
0
 /// <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)));
 }
예제 #2
0
 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)));
 }
예제 #3
0
        /// <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)));
        }
예제 #5
0
        /// <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));
        }
예제 #6
0
        /// <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));
        }
예제 #7
0
        /// <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);
        }
예제 #8
0
        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));
        }
예제 #9
0
        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));
        }
예제 #10
0
        static AyGaosiBackgroundLayer()
        {
            BorderBrushProperty.OverrideMetadata(
                typeof(AyGaosiBackgroundLayer),
                new FrameworkPropertyMetadata(new PropertyChangedCallback(BorderBrushPropertyChanged)));

            BorderThicknessProperty.OverrideMetadata(
                typeof(AyGaosiBackgroundLayer),
                new FrameworkPropertyMetadata(new PropertyChangedCallback(BorderThicknessPropertyChanged)));
        }
예제 #11
0
 static TabControl()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(typeof(TabControl)));
     BorderThicknessProperty.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata()
     {
         DefaultValue            = new Thickness(1),
         CoerceValueCallback     = OnCoerceBorderThickness,
         PropertyChangedCallback = OnBorderThicknessChanged,
     });
 }
예제 #12
0
        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));
        }
예제 #13
0
        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)));
        }
예제 #14
0
 set => SetValue(BorderThicknessProperty, value);
예제 #15
0
 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));
 }
예제 #16
0
파일: ToggleStrip.cs 프로젝트: ajbadaj/AJut
 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")));
 }