Beispiel #1
0
        private void StartDrawingLine(ConnectingRectangleViewModel rectangle)
        {
            var startPosition = GetAnchorPoint(rectangle);

            _line = DrawerHelper.GetLine(startPosition, startPosition, isHitTestVisible: false);

            AddLineToGrid(_line);

            View.MouseMove += View_MouseMove;
        }
Beispiel #2
0
        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);
        }