Skip to content

UIElementMarkupExtensions.OnDragStarting<T> method

Subscribes handler to DragStarting. Occurs after a drag gesture is detected on this element; handlers populate Data and AllowedEffects to start the session, or set Cancel.

public static T OnDragStarting<T>(this T target, Action<DragStartingEventArgs> handler)
where T : UIElement
parameter description
T Receiver type.
target Target UIElement.
handler Handler subscribed to DragStarting.

The same element for chaining.

Sets: UIElement.DragStarting