[]
Initializes a new C1DragHelper.
public C1DragHelper(FrameworkElement element, C1DragHelperMode mode = C1DragHelperMode.TranslateXY, double? initialThreshold = null, bool captureElementOnPointerPressed = true, bool handledEventsToo = false, bool useManipulationEvents = false, bool useRightButton = false, bool startByHolding = false)
Type | Name | Description |
---|---|---|
FrameworkElement | element | An Microsoft.UI.Xaml.FrameworkElement on which the drag gesture will be listened. |
C1DragHelperMode | mode | Indicates the sort of drag to be listened. Combine inertia flag with other flags so that DragDelta events are raised after the manipulation finish. i.e. C1DragHelperMode.FreeDrag | C1DragHelperMode.Inertia |
double? | initialThreshold | Specifies the number of pixels the gesture will have to pass in order to start. if 0 is set the gesture will start on pointer down, and captureElementOnPointerPressed will be true despite the specified parameter, otherwise the gesture will start on mouse move, default value is 1 |
bool | captureElementOnPointerPressed | Indicates 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). If initialThreshold is 0 this parameter will be ignored. |
bool | handledEventsToo | Indicates whether drag gestures will be listened despite mouse events were already handled. (It only applies to mouse gestures) |
bool | useManipulationEvents | When set to true it uses Manipulation events to listen to the gesture, otherwise it will use Pointer events. |
bool | useRightButton | if set to |
bool | startByHolding | if set to |