/// <summary>
        /// Initializes static members of the <see cref="EllipseAnnotation"/> class.
        /// </summary>
        static EllipseAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <EllipseAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <EllipseAnnotation>(AppearanceChanged);

            XProperty.Changed.AddClassHandler <EllipseAnnotation>(DataChanged);
            YProperty.Changed.AddClassHandler <EllipseAnnotation>(DataChanged);
        }
示例#2
0
        /// <summary>
        /// Initializes static members of the <see cref="PolygonAnnotation"/> class.
        /// </summary>
        static PolygonAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <PolygonAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <PolygonAnnotation>(AppearanceChanged);

            LineJoinProperty.Changed.AddClassHandler <PolygonAnnotation>(AppearanceChanged);
            LineStyleProperty.Changed.AddClassHandler <PolygonAnnotation>(AppearanceChanged);
            PointsProperty.Changed.AddClassHandler <PolygonAnnotation>(DataChanged);
        }
示例#3
0
        /// <summary>
        /// Initializes static members of the <see cref="RectangleAnnotation"/> class.
        /// </summary>
        static RectangleAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <RectangleAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <RectangleAnnotation>(AppearanceChanged);

            MaximumXProperty.Changed.AddClassHandler <RectangleAnnotation>(DataChanged);
            MaximumYProperty.Changed.AddClassHandler <RectangleAnnotation>(DataChanged);
            MinimumXProperty.Changed.AddClassHandler <RectangleAnnotation>(DataChanged);
            MinimumYProperty.Changed.AddClassHandler <RectangleAnnotation>(DataChanged);
        }
        /// <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);
        }
        /// <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);
        }
        /// <summary>
        /// Initializes static members of the <see cref="PointAnnotation"/> class.
        /// </summary>
        static PointAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <PointAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <PointAnnotation>(AppearanceChanged);
            TextVerticalAlignmentProperty.OverrideDefaultValue <PointAnnotation>(VerticalAlignment.Top);
            TextVerticalAlignmentProperty.Changed.AddClassHandler <PointAnnotation>(AppearanceChanged);

            XProperty.Changed.AddClassHandler <PointAnnotation>(DataChanged);
            YProperty.Changed.AddClassHandler <PointAnnotation>(DataChanged);
            SizeProperty.Changed.AddClassHandler <PointAnnotation>(AppearanceChanged);
            TextMarginProperty.Changed.AddClassHandler <PointAnnotation>(AppearanceChanged);
            ShapeProperty.Changed.AddClassHandler <PointAnnotation>(AppearanceChanged);
        }
        /// <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);
        }
        /// <summary>
        /// Initializes static members of the <see cref="ArrowAnnotation"/> class.
        /// </summary>
        static ArrowAnnotation()
        {
            TextColorProperty.OverrideDefaultValue <ArrowAnnotation>(MoreColors.Automatic);
            TextColorProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);

            ArrowDirectionProperty.Changed.AddClassHandler <ArrowAnnotation>(DataChanged);
            ColorProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            EndPointProperty.Changed.AddClassHandler <ArrowAnnotation>(DataChanged);
            HeadLengthProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            HeadWidthProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            LineJoinProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            LineStyleProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            StartPointProperty.Changed.AddClassHandler <ArrowAnnotation>(DataChanged);
            StrokeThicknessProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
            VeenessProperty.Changed.AddClassHandler <ArrowAnnotation>(AppearanceChanged);
        }
示例#9
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);
        }