private void DrawPlacementArrow(DrawingContext dc) { Brush fillBrush = BondPen.Brush.Clone(); var fatArrow = FatArrowGeometry.GetArrowGeometry(StartPoint, EndPoint); dc.DrawGeometry(fillBrush, null, fatArrow); }
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); }