示例#1
0
        private void DrawPlacementArrow(DrawingContext dc)
        {
            Brush fillBrush = BondPen.Brush.Clone();

            var fatArrow = FatArrowGeometry.GetArrowGeometry(StartPoint, EndPoint);

            dc.DrawGeometry(fillBrush, null, fatArrow);
        }
示例#2
0
        private void DrawPlacementArrow(DrawingContext dc)
        {
            Brush fillBrush;

            if (GreyedOut)
            {
                fillBrush = (Brush)FindResource(Globals.BlockedAdornerBrush);
            }
            else
            {
                fillBrush = BondPen.Brush.Clone();
            }

            var fatArrow = FatArrowGeometry.GetArrowGeometry(StartPoint, EndPoint);

            dc.DrawGeometry(fillBrush, null, fatArrow);
        }