GesturePanHandler Element

An input handler that provides pan gesture tracking behavior to a UI object for touch input.

Syntax

  <GesturePanHandler
    CalculatedPanLockAxis="{Dominant | None | X | Y}"
    ElasticityDown="float"
    ElasticityLeft="float"
    ElasticityRight="float"
    ElasticityUp="float"
    HandleDominantAxisOnly="{true | false}"
    HandlerStage="{Bubbled | Direct | Routed}"
    InertiaSettings="GestureInertiaSettings element"
    IsPanning="{true | false}"
    IsPanningInertia="{true | false}"
    Name="string"
    Offset="int"
    PanLockAxis="{Dominant | None | X | Y}"
    RatchetOffset="int"
    RatchetSettings="GestureRatchetSettings element"
/>

Attributes

CalculatedPanLockAxis

A member of the GesturePanLockAxis enumeration indicating the actual axis to which pan movements are constrained.

ElasticityDown

Indicates the the amount of resistance to apply when panning down.

ElasticityLeft

Indicates the the amount of resistance to apply when panning left.

ElasticityRight

Indicates the the amount of resistance to apply when panning right.

ElasticityUp

Indicates the the amount of resistance to apply when panning up.

HandleDominantAxisOnly

Indicates whether a gesture's dominant axis that matches the defined lock axis should be handled.

HandlerStage

A member of the InputHandlerStage enumeration indicating the stage in the event handling process when the event will be handled.

This value should be Direct (the default) if the scroller does not contain focusable content. It should be Bubbled when using focus-based scrolling to interact with the child items of the scroller.

InertiaSettings

Specifies a reference to a GestureInertiaSettings element that is used to determine how inertia affects the panning offsets.

IsPanning

Indicates whether the user is panning.

IsPanningInertia

Indicates whether the user is panning due to inertia.

Name

Identifies this element.

Offset

The difference between the current position and the initial panning position.

PanLockAxis

A member of the GesturePanLockAxis enumeration indicating the axis to which to constrain pan movements.

RatchetOffset

The difference between the current position and the last ratchet starting position.

RatchetSettings

Specifies a reference to a GestureRatchetSettings element that provides information used to determine when ratcheting events are fired.

Public Instance Events

Event Description
Invoked Notification that is sent when a panning gesture occurs.

Requirements

Platform: Windows 7

See Also