WinUI | ComponentOne
C1.WinUI.Core Assembly / C1.WinUI.Core Namespace / C1DragHelper Class / DragPreview Event
In This Topic
    DragPreview Event
    In This Topic
    Occurs before a drag gesture starts giving the user the opportunity to configure the kind of gesture that will be listened based on the point where the manipulation started.
    Syntax
    public event EventHandler<C1DragPreviewEventArgs> DragPreview
    Event Data

    The event handler receives an argument of type C1DragPreviewEventArgs containing data related to this event. The following C1DragPreviewEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets a value indicating whether the recognition of this gesture is canceled.  
    Gets or sets a value indicating whether the element will be captured in pointer pressed event (MouseLeftButtonDown in SL and WPF and PointerPressed in WINUI) or in the first pointer move event (MouseMove in SL and WPF and PointerMoved in WINUI).Capturing the element on mouse down will cause Click, DoubleClick and MouseLeftButtonUp events not to be fired in sub-elements (nested elements in the visual tree), whereas capturing the element on the first mouse move can make it difficult for final users to drag small elements quickly.  
    Gets or sets a value that marks the routed event as handled. Setting to true prevents most handlers along the event route from handling the same event again. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets or sets the number of pixels the gesture will have to pass in order to start.  
    Gets whether command key is pressed. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets whether ctrl key is pressed. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets whether shift key is pressed. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets or sets the mode indicating the sort of drag to be listened.  
    Gets the position of original touch point.  
    Gets the arguments of the original event which raised this event. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets a reference to the object that raised the event. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets the type of pointer which performed the action. (Inherited from C1.WinUI.Core.C1InputEventArgs)
    Gets or sets a value indicating whether drag will be initiated by a hold operation.  
    See Also