Skip to content

Interactivity / DragState<TElement>

Namespace: Nodify.Interactivity

Assembly: Nodify

Inheritance: ObjectInputElementState<TElement>DragState<TElement>

public abstract class DragState<TElement> : InputElementState<TElement>

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

protected InputGesture BeginGesture { get; set; }

Property Value

InputGesture

protected virtual bool CanBegin { get; set; }

Property Value

Boolean

protected virtual bool CanCancel { get; set; }

Property Value

Boolean

protected InputGesture CancelGesture { get; set; }

Property Value

InputGesture

protected virtual bool HasContextMenu { get; set; }

Property Value

Boolean

protected virtual bool IsToggle { get; set; }

Property Value

Boolean

protected IInputElement PositionElement { get; set; }

Property Value

IInputElement

protected virtual bool CanCaptureInput(InputEventArgs e);

Parameters

e InputEventArgs

Returns

Boolean

protected virtual void CaptureInput(InputEventArgs e);

Parameters

e InputEventArgs

protected virtual Point GetInitialPosition(InputEventArgs e);

Parameters

e InputEventArgs

Returns

Point

protected virtual bool IsInputCaptureLost(InputEventArgs e);

Parameters

e InputEventArgs

Returns

Boolean

protected virtual bool IsInputEventPressed(InputEventArgs e);

Parameters

e InputEventArgs

Returns

Boolean

protected virtual bool IsInputEventReleased(InputEventArgs e);

Parameters

e InputEventArgs

Returns

Boolean

protected virtual void OnBegin(InputEventArgs e);

Parameters

e InputEventArgs

protected virtual void OnCancel(InputEventArgs e);

Parameters

e InputEventArgs

protected virtual void OnEnd(InputEventArgs e);

Parameters

e InputEventArgs