private void StartDrawingLine(ConnectingRectangleViewModel rectangle) { var startPosition = GetAnchorPoint(rectangle); _line = DrawerHelper.GetLine(startPosition, startPosition, isHitTestVisible: false); AddLineToGrid(_line); View.MouseMove += View_MouseMove; }
private Line AddLine(ConnectingRectangleViewModel source, ConnectingRectangleViewModel destination) { var startPosition = GetAnchorPoint(source); var endPosition = GetAnchorPoint(destination); var line = DrawerHelper.GetLine(startPosition, endPosition, isHitTestVisible: false); AddLineToGrid(line); return(line); }