Beispiel #1
0
        void initLine(Color c)
        {
            line                 = new Line();
            line.Stroke          = new SolidColorBrush(c);
            line.StrokeThickness = ShapeUtils.LINE_WIDTH;
            line.Effect          = ShapeUtils.ShadowProvider();
            line.Tag             = this;

            selMarker1     = ShapeUtils.MakeMarker();
            selMarker1.Tag = this;

            selMarker2     = ShapeUtils.MakeMarker();
            selMarker2.Tag = this;
        }
Beispiel #2
0
        private void initLine(Color c)
        {
            line                 = new ArrowLine();
            line.Stroke          = new SolidColorBrush(c);
            line.ArrowEnds       = ArrowEnds.Start;
            line.ArrowAngle      = 40;
            line.StrokeThickness = ShapeUtils.LINE_WIDTH;
            line.Effect          = ShapeUtils.ShadowProvider();
            line.Tag             = this;

            selMarker1     = ShapeUtils.MakeMarker();
            selMarker1.Tag = this;

            selMarker2     = ShapeUtils.MakeMarker();
            selMarker2.Tag = this;
        }
Beispiel #3
0
        private void init()
        {
            drawGrp = new DrawingGroup();

            initImg();

            blMark     = ShapeUtils.MakeMarker();
            blMark.Tag = this;

            tlMark     = ShapeUtils.MakeMarker();
            tlMark.Tag = this;

            trMark     = ShapeUtils.MakeMarker();
            trMark.Tag = this;

            brMark     = ShapeUtils.MakeMarker();
            brMark.Tag = this;

            cMark     = ShapeUtils.MakeMarker();
            cMark.Tag = this;
        }
Beispiel #4
0
        private void initText(Color c)
        {
            _textEnterUC = new TextUC(this);
            _textEnterUC.txtLabel.Effect     = ShapeUtils.ShadowProvider();
            _textEnterUC.txtLabel.Foreground = new SolidColorBrush(c);
            _textEnterUC.DataContext         = this;
            _textEnterUC.Tag          = this;
            _textEnterUC.field.Tag    = this;
            _textEnterUC.handle.Tag   = this;
            _textEnterUC.textChanged += TextChanged;
            _textEnterUC.MouseWheel  += MouseWheel;

            blMark     = ShapeUtils.MakeMarker();
            blMark.Tag = this;

            tlMark     = ShapeUtils.MakeMarker();
            tlMark.Tag = this;

            trMark     = ShapeUtils.MakeMarker();
            trMark.Tag = this;

            brMark     = ShapeUtils.MakeMarker();
            brMark.Tag = this;
        }