static PrimitiveShape() { StretchProperty.OverrideMetadata(typeof(PrimitiveShape), new DrawingPropertyMetadata(Stretch.Fill, DrawingPropertyMetadataOptions.AffectsRender)); StrokeThicknessProperty.OverrideMetadata(typeof(PrimitiveShape), new DrawingPropertyMetadata(ValueBoxes.Double1Box, DrawingPropertyMetadataOptions.AffectsRender)); }
static Pie() { //StretchProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Stretch.None)); StrokeProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Brushes.Gray)); StrokeThicknessProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(1d)); FillProperty.OverrideMetadata(typeof(Pie), new FrameworkPropertyMetadata(Brushes.LightGray)); }
static ViewportShape() { Type type = typeof(ViewportShape); StrokeProperty.AddOwner(type, new FrameworkPropertyMetadata(Brushes.Blue)); StrokeThicknessProperty.AddOwner(type, new FrameworkPropertyMetadata(2.0)); }
static MapGraticule() { IsHitTestVisibleProperty.OverrideMetadata( typeof(MapGraticule), new FrameworkPropertyMetadata(false)); StrokeThicknessProperty.OverrideMetadata( typeof(MapGraticule), new FrameworkPropertyMetadata(0.5)); }
static Arc() { StrokeThicknessProperty.OverrideDefaultValue <Arc>(1.0d); AffectsGeometry <Arc>( BoundsProperty, StrokeThicknessProperty, StartAngleProperty, SweepAngleProperty); }
static ProgressCircle() { Brush myGreenBrush = new SolidColorBrush(Colors.CadetBlue); myGreenBrush.Freeze(); StrokeProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(myGreenBrush)); FillProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(Brushes.Transparent)); StrokeThicknessProperty.OverrideMetadata(typeof(ProgressCircle), new FrameworkPropertyMetadata(10.0)); }
static CircularProgress() { Brush myGreenBrush = new SolidColorBrush(Color.FromArgb(255, 6, 176, 37)); myGreenBrush.Freeze(); StrokeProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(myGreenBrush)); FillProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(Brushes.Transparent)); StrokeThicknessProperty.OverrideMetadata(typeof(CircularProgress), new FrameworkPropertyMetadata(25.0)); }
static ShapeBase() { StrokeDashArrayProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeDashCapProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeDashOffsetProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeEndLineCapProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeLineJoinProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeMiterLimitProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeStartLineCapProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); StrokeThicknessProperty.OverrideMetadata(typeof(ShapeBase), new FrameworkPropertyMetadata(OnStrokeChanged)); }
static AwesomeProgressBar() { Brush Brush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#373542")); Brush.Freeze(); StrokeProperty.OverrideMetadata( typeof(AwesomeProgressBar), new FrameworkPropertyMetadata(Brush)); FillProperty.OverrideMetadata( typeof(AwesomeProgressBar), new FrameworkPropertyMetadata(Brushes.Transparent)); StrokeThicknessProperty.OverrideMetadata( typeof(AwesomeProgressBar), new FrameworkPropertyMetadata(5.0)); }
static CircularProgress() { Brush brush = new SolidColorBrush(System.Windows.Media.Color.FromArgb(255, 6, 176, 37)); brush.Freeze(); StrokeProperty.OverrideMetadata( typeof(CircularProgress), new FrameworkPropertyMetadata(brush)); FillProperty.OverrideMetadata( typeof(CircularProgress), new FrameworkPropertyMetadata(Brushes.Transparent)); StrokeThicknessProperty.OverrideMetadata( typeof(CircularProgress), new FrameworkPropertyMetadata(10.0)); }
/// <summary> /// Initializes static member(s) of the <see cref="Polyline"/> class. /// </summary> static Polyline() { StrokeThicknessProperty.OverrideDefaultValue <Polyline>(1); AffectsGeometry <Polyline>(PointsProperty); }
get => (double)GetValue(StrokeThicknessProperty); set => SetValue(StrokeThicknessProperty, value);
static BezierLine() { StrokeThicknessProperty.OverrideDefaultValue <BezierLine>(1.0); StrokeProperty.OverrideDefaultValue <BezierLine>(Brushes.Red); AffectsGeometry <BezierLine>(StartPointProperty, EndPointProperty); }
set => SetValue(StrokeThicknessProperty, value);
static MapGraticule() { StrokeThicknessProperty.OverrideMetadata(typeof(MapGraticule), new FrameworkPropertyMetadata(0.5)); }
/// <summary> /// Initializes static member(s) of the <see cref="Line"/> class. /// </summary> static Line() { StrokeThicknessProperty.OverrideDefaultValue <Line>(1); AffectsGeometry <Line>(StartPointProperty, EndPointProperty); }
static DashedSeparator() { StretchProperty.OverrideMetadata(typeof(DashedSeparator), new FrameworkPropertyMetadata(Stretch.Fill)); StrokeProperty.OverrideMetadata(typeof(DashedSeparator), new FrameworkPropertyMetadata(OnPenChanged)); StrokeThicknessProperty.OverrideMetadata(typeof(DashedSeparator), new FrameworkPropertyMetadata(OnPenChanged)); }