Example #1
0
        public CondShape()
        {
            points = new PointCollection();

            polyline1 = new Polyline();
            polyline1.Stroke = Brushes.SlateGray;
            polyline1.StrokeThickness = 3;
            polyline1.StrokeEndLineCap = PenLineCap.Square;

            polyline2 = new RoundedCornersPolygon();
            polyline1.StrokeStartLineCap = PenLineCap.Square;
            polyline2.Stroke = polyline1.Stroke;
            polyline2.StrokeThickness = polyline1.StrokeThickness;
            polyline2.ArcRoundness = 15;
            polyline2.IsClosed = false;

            arrow = new Polyline();
            arrow.Stroke = Brushes.SlateGray;
            arrow.StrokeThickness = 3;
            arrow.StrokeEndLineCap = PenLineCap.Round;

            textBlock = new TextBlock();
            NormalOrder = true;
        }