Core Library for WPF | ComponentOne
C1.WPF.Core Namespace / C1DragPreviewEventArgs Class / CaptureElementOnPointerPressed Property

In This Topic
    CaptureElementOnPointerPressed Property
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Property CaptureElementOnPointerPressed As Boolean
    public bool CaptureElementOnPointerPressed {get; set;}
    Remarks
    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.
    See Also