public ConnectionViewModel OnConnectionDragStarted(Point currentDragPoint) { _client.UndoManager.StartTransaction("New connection drag started"); var connection = _sheet.CreateConnection(); connection.FromPosition = new AplayPoint(currentDragPoint.X, currentDragPoint.Y); connection.ToPosition = new AplayPoint(currentDragPoint.X, currentDragPoint.Y); _sheet.AddConnection(connection, _client); var connectionViewModel = new ConnectionViewModel(connection, _client, _inspectorTool) { ToPosition = currentDragPoint }; return(connectionViewModel); }