Exemplo n.º 1
0
        /// <summary>
        /// Initializes static members of the <see cref="PolylineAnnotation"/> class.
        /// </summary>
        static PolylineAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <PolylineAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <PolylineAnnotation>(AppearanceChanged);
            TextHorizontalAlignmentProperty.OverrideDefaultValue <PolylineAnnotation>(HorizontalAlignment.Right);
            TextHorizontalAlignmentProperty.Changed.AddClassHandler <PolylineAnnotation>(AppearanceChanged);
            TextVerticalAlignmentProperty.OverrideDefaultValue <PolylineAnnotation>(VerticalAlignment.Top);
            TextVerticalAlignmentProperty.Changed.AddClassHandler <PolylineAnnotation>(AppearanceChanged);

            InterpolationAlgorithmProperty.Changed.AddClassHandler <PolylineAnnotation>(DataChanged);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes static members of the <see cref="FunctionAnnotation"/> class.
        /// </summary>
        static FunctionAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <FunctionAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <FunctionAnnotation>(AppearanceChanged);
            TextHorizontalAlignmentProperty.OverrideDefaultValue <FunctionAnnotation>(HorizontalAlignment.Right);
            TextHorizontalAlignmentProperty.Changed.AddClassHandler <FunctionAnnotation>(AppearanceChanged);
            TextVerticalAlignmentProperty.OverrideDefaultValue <FunctionAnnotation>(VerticalAlignment.Top);
            TextVerticalAlignmentProperty.Changed.AddClassHandler <FunctionAnnotation>(AppearanceChanged);

            TypeProperty.Changed.AddClassHandler <FunctionAnnotation>(DataChanged);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initializes static members of the <see cref = "TextAnnotation" /> class.
        /// </summary>
        static TextAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <TextAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            TextHorizontalAlignmentProperty.OverrideDefaultValue <TextAnnotation>(HorizontalAlignment.Right);
            TextHorizontalAlignmentProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            TextVerticalAlignmentProperty.OverrideDefaultValue <TextAnnotation>(VerticalAlignment.Top);
            TextVerticalAlignmentProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);

            BackgroundProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            OffsetProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            PaddingProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            StrokeProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
            StrokeThicknessProperty.Changed.AddClassHandler <TextAnnotation>(AppearanceChanged);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes static members of the <see cref="LineAnnotation"/> class.
        /// </summary>
        static LineAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <LineAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <LineAnnotation>(AppearanceChanged);
            TextHorizontalAlignmentProperty.OverrideDefaultValue <LineAnnotation>(HorizontalAlignment.Right);
            TextHorizontalAlignmentProperty.Changed.AddClassHandler <LineAnnotation>(AppearanceChanged);
            TextVerticalAlignmentProperty.OverrideDefaultValue <LineAnnotation>(VerticalAlignment.Top);
            TextVerticalAlignmentProperty.Changed.AddClassHandler <LineAnnotation>(AppearanceChanged);

            TypeProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            InterceptProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            MaximumXProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            MaximumYProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            MinimumXProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            MinimumYProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            SlopeProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            XProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
            YProperty.Changed.AddClassHandler <LineAnnotation>(DataChanged);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes static members of the <see cref="PolylineAnnotation"/> class.
 /// </summary>
 static PolylineAnnotation()
 {
     TextColorProperty.OverrideMetadata(typeof(PolylineAnnotation), new FrameworkPropertyMetadata(MoreColors.Automatic, AppearanceChanged));
     TextHorizontalAlignmentProperty.OverrideMetadata(typeof(PolylineAnnotation), new FrameworkPropertyMetadata(HorizontalAlignment.Right, AppearanceChanged));
     TextVerticalAlignmentProperty.OverrideMetadata(typeof(PolylineAnnotation), new FrameworkPropertyMetadata(VerticalAlignment.Top, AppearanceChanged));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes static members of the <see cref = "TextAnnotation" /> class.
 /// </summary>
 static TextAnnotation()
 {
     TextHorizontalAlignmentProperty.OverrideMetadata(typeof(TextAnnotation), new FrameworkPropertyMetadata(HorizontalAlignment.Center, AppearanceChanged));
     TextVerticalAlignmentProperty.OverrideMetadata(typeof(TextAnnotation), new FrameworkPropertyMetadata(VerticalAlignment.Bottom, AppearanceChanged));
     TextColorProperty.OverrideMetadata(typeof(TextAnnotation), new FrameworkPropertyMetadata(MoreColors.Automatic, AppearanceChanged));
 }