Exemple #1
0
        private void OnConnectorItemDragging(object sender, ConnectorItemDraggingEventArgs e)
        {
            e.Handled = true;

            var connectionDraggingEventArgs =
                new ConnectionDraggingEventArgs(ConnectionDraggingEvent, this,
                                                _draggingSourceConnector.ParentElementItem, _draggingConnectionDataContext,
                                                _draggingSourceConnector);

            RaiseEvent(connectionDraggingEventArgs);
        }
Exemple #2
0
        private void OnConnectorItemDragging(object sender, ConnectorItemDraggingEventArgs e)
        {
            e.Handled = true;

            var connectionDraggingEventArgs =
                new ConnectionDraggingEventArgs(ConnectionDraggingEvent, this,
                    _draggingSourceConnector.ParentElementItem, _draggingConnectionDataContext,
                    _draggingSourceConnector);
            RaiseEvent(connectionDraggingEventArgs);
        }
Exemple #3
0
 private void OnGraphControlConnectionDragging(object sender, ConnectionDraggingEventArgs e)
 {
     var currentDragPoint = Mouse.GetPosition(GraphControl);
     var connection = (ConnectionViewModel) e.Connection;
     ViewModel.OnConnectionDragging(currentDragPoint, connection);
 }