Fires each time the end-user attempts to perform an action on a diagram item.
public event EventHandler<DiagramQueryItemsActionEventArgs> QueryItemsAction
Public Event QueryItemsAction As EventHandler(Of DiagramQueryItemsActionEventArgs)
The QueryItemsAction event's data class is DiagramQueryItemsActionEventArgs. The following properties provide information specific to this event:
|Action||Indicates the kind of the action that raised the event.|
|Allow||Specifies whether to allow performing the operation.|
|Handled||Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.|
|HighlightedItem||Returns the currently highlighted diagram item.|
|HighlightedItemPoint||Returns the current coordinates of the cursor.|
|Items||Returns the collection of diagram items affected by the action.|
|OriginalSource||Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.|
|RoutedEvent||Gets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.|
|Source||Gets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.|
The event's Items property returns the collection of diagram items on which an action is about to be performed. The action kind is returned by the Action property. You can prohibit the action from being performed by setting the Allow property to false.