Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight
C# Copy Code |
---|
public event EventHandler<SelectionValidationEventArgs> SelectionModifying |
Visual Basic Copy Code |
---|
Public Event SelectionModifying As EventHandler(Of SelectionValidationEventArgs) |
SelectionModifying event handlers receive an argument of type ValidationEventArgs. The following ValidationEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
Set this property to true to prevent the user from placing the selected items at the current location. That displays the Stop mouse cursor and releasing the button will cancel the operation. | |
Call this method to immediately stop the modification. |
This event is raised after each mouse movement while modifying a selection of items. Setting Cancel to true will change the mouse cursor to a Stop icon. The event is raised once again when the mouse button is released. Setting Cancel to true in that case will cancel the modification and return the items to their original position.
Use the Selection property of the Diagram class to access the selected items.