static IconButton()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(IconButton), new FrameworkPropertyMetadata(typeof(IconButton)));
     PaddingProperty.OverrideMetadata(typeof(IconButton), new FrameworkPropertyMetadata()
     {
         DefaultValue            = new Thickness(DefaultPadding),
         PropertyChangedCallback = OnPaddingChanged
     });
 }
Example #2
0
 static ProgressBar()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(ProgressBar), new FrameworkPropertyMetadata(typeof(ProgressBar)));
     PaddingProperty.OverrideMetadata(typeof(ProgressBar), new FrameworkPropertyMetadata(OnPaddingChanged));
     BackgroundProperty.OverrideMetadata(typeof(ProgressBar), new FrameworkPropertyMetadata {
         CoerceValueCallback = CoerceBrush
     });
     ForegroundProperty.OverrideMetadata(typeof(ProgressBar), new FrameworkPropertyMetadata {
         CoerceValueCallback = CoerceBrush
     });
 }
 /// <summary>
 /// Initializes the <see cref="DefaultTooltip"/> class.
 /// </summary>
 static DefaultTooltip()
 {
     BackgroundProperty.OverrideMetadata(
         typeof(DefaultTooltip), new FrameworkPropertyMetadata(new SolidColorBrush(Color.FromArgb(140, 255, 255, 255))));
     PaddingProperty.OverrideMetadata(
         typeof(DefaultTooltip), new FrameworkPropertyMetadata(new Thickness(10, 5, 10, 5)));
     EffectProperty.OverrideMetadata(
         typeof(DefaultTooltip),
         new FrameworkPropertyMetadata(new DropShadowEffect {
         BlurRadius = 3, Color = Color.FromRgb(50, 50, 50), Opacity = .2
     }));
 }
Example #4
0
 /// <summary>
 /// Initializes static members of the <see cref="PlotView" /> class.
 /// </summary>
 static PlotView()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(PlotView), new FrameworkPropertyMetadata(typeof(PlotView)));
     PaddingProperty.OverrideMetadata(typeof(PlotView), new FrameworkPropertyMetadata(new Thickness(8), AppearanceChanged));
 }
Example #5
0
 /// <summary>
 /// Initializes static members of the <see cref="PlotView" /> class.
 /// </summary>
 static PlotView()
 {
     PaddingProperty.OverrideMetadata(typeof(PlotView), new StyledPropertyMetadata <Thickness>(new Thickness(8)));
     ModelProperty.Changed.AddClassHandler <PlotView>(ModelChanged);
     PaddingProperty.Changed.AddClassHandler <PlotView>(AppearanceChanged);
 }
 static ReleaseButton()
 {
     PaddingProperty.OverrideMetadata(typeof(ReleaseButton), new FrameworkPropertyMetadata(OnPaddingChanged));
 }
Example #7
0
 /// <summary>
 /// Initializes static members of the <see cref="PlotViewBase" /> class.
 /// </summary>
 static PlotViewBase()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(PlotViewBase), new FrameworkPropertyMetadata(typeof(PlotViewBase)));
     PaddingProperty.OverrideMetadata(typeof(PlotViewBase), new FrameworkPropertyMetadata(new Thickness(8)));
 }