MindFusion.Wpf Pack Programmer's Guide
DiagramBase.SelectionModifying Event
See Also
 





Raised while the user is moving or resizing multiple selected items, this event lets you cancel the modification.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public event EventHandler<SelectionValidationEventArgs> SelectionModifying

Visual Basic  Copy Code

Public Event SelectionModifying As EventHandler(Of SelectionValidationEventArgs)

 Event Data

SelectionModifying event handlers receive an argument of type SelectionValidationEventArgs. The following SelectionValidationEventArgs members provide information relevant to the event:

Member name

Description

AdjustmentHandle

Gets the adjustment handle being moved by the user.

Cancel

Gets or sets a value indicating whether to prevent the user from completing the operation.

CancelDrag

Call this method to immediately stop the modification.

MousePosition

Gets the current mouse pointer position.

 Remarks

This event is raised after each mouse movement while modifying a selection of items. Setting Cancel to true will change the mouse cursor to DisallowCursor (a Stop icon by default). 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.

 See Also

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming.Wpf Namespace