Ejemplo n.º 1
0
 static MapScale()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(false));
     MinWidthProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(100d));
     HorizontalAlignmentProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(HorizontalAlignment.Right));
     VerticalAlignmentProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(VerticalAlignment.Bottom));
     StrokeStartLineCapProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(PenLineCap.Round));
     StrokeEndLineCapProperty.OverrideMetadata(typeof(MapScale), new FrameworkPropertyMetadata(PenLineCap.Round));
 }
Ejemplo n.º 2
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));
 }