Interactivity / DragState<TElement>
DragState<TElement> Class
Section titled “DragState<TElement> Class”Namespace: Nodify.Interactivity
Assembly: Nodify
Inheritance: Object → InputElementState<TElement> → DragState<TElement>
public abstract class DragState<TElement> : InputElementState<TElement>
Constructors
Section titled “Constructors”DragState<TElement>(TElement, InputGesture)
Section titled “DragState<TElement>(TElement, InputGesture)”public DragState<TElement>(TElement element, InputGesture beginGesture);
Parameters
element
TElement
beginGesture
InputGesture
DragState<TElement>(TElement, InputGesture, InputGesture)
Section titled “DragState<TElement>(TElement, InputGesture, InputGesture)”public DragState<TElement>(TElement element, InputGesture beginGesture, InputGesture cancelGesture);
Parameters
element
TElement
beginGesture
InputGesture
cancelGesture
InputGesture
Properties
Section titled “Properties”BeginGesture
Section titled “BeginGesture”protected InputGesture BeginGesture { get; set; }
Property Value
CanBegin
Section titled “CanBegin”protected virtual bool CanBegin { get; set; }
Property Value
CanCancel
Section titled “CanCancel”protected virtual bool CanCancel { get; set; }
Property Value
CancelGesture
Section titled “CancelGesture”protected InputGesture CancelGesture { get; set; }
Property Value
HasContextMenu
Section titled “HasContextMenu”protected virtual bool HasContextMenu { get; set; }
Property Value
IsToggle
Section titled “IsToggle”protected virtual bool IsToggle { get; set; }
Property Value
PositionElement
Section titled “PositionElement”protected IInputElement PositionElement { get; set; }
Property Value
Methods
Section titled “Methods”CanCaptureInput(InputEventArgs)
Section titled “CanCaptureInput(InputEventArgs)”protected virtual bool CanCaptureInput(InputEventArgs e);
Parameters
Returns
CaptureInput(InputEventArgs)
Section titled “CaptureInput(InputEventArgs)”protected virtual void CaptureInput(InputEventArgs e);
Parameters
GetInitialPosition(InputEventArgs)
Section titled “GetInitialPosition(InputEventArgs)”protected virtual Point GetInitialPosition(InputEventArgs e);
Parameters
Returns
IsInputCaptureLost(InputEventArgs)
Section titled “IsInputCaptureLost(InputEventArgs)”protected virtual bool IsInputCaptureLost(InputEventArgs e);
Parameters
Returns
IsInputEventPressed(InputEventArgs)
Section titled “IsInputEventPressed(InputEventArgs)”protected virtual bool IsInputEventPressed(InputEventArgs e);
Parameters
Returns
IsInputEventReleased(InputEventArgs)
Section titled “IsInputEventReleased(InputEventArgs)”protected virtual bool IsInputEventReleased(InputEventArgs e);
Parameters
Returns
OnBegin(InputEventArgs)
Section titled “OnBegin(InputEventArgs)”protected virtual void OnBegin(InputEventArgs e);
Parameters
OnCancel(InputEventArgs)
Section titled “OnCancel(InputEventArgs)”protected virtual void OnCancel(InputEventArgs e);
Parameters
OnEnd(InputEventArgs)
Section titled “OnEnd(InputEventArgs)”protected virtual void OnEnd(InputEventArgs e);
Parameters