DragTrigger Direction Property Delta Engine Documentation

Namespace: DeltaEngine.Commands
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public DragDirection Direction { get; protected set; }

Property Value

Type: DragDirection
Remarks

Tests: DeltaEngine.Input.Tests.TouchDualDragTriggerTests
Remarks

Tests: DeltaEngine.Input.Tests.TouchDragTriggerTests
Examples

1 unit tests call DeltaEngine.Commands.DragTrigger.Direction
[Test, CloseAfterFirstFrame]
public void Create()
{
    var trigger = new TouchDualDragTrigger();
    Assert.AreEqual(DragDirection.Free, trigger.Direction);
    trigger =
        new TouchDualDragTrigger(new Dictionary<string, string> { { "Direction", "Horizontal" } });
Examples

1 unit tests call DeltaEngine.Commands.DragTrigger.Direction
[Test, CloseAfterFirstFrame]
public void Create()
{
    var trigger = new TouchDragTrigger();
    Assert.AreEqual(DragDirection.Free, trigger.Direction);
    trigger =
        new TouchDragTrigger(new Dictionary<string, string> { { "Direction", "Horizontal" } });
See Also