PanGesture ux
A TransformGesture that provides panning (2D translation).
A TransformGesture
interprets pointer gestures and modifies an InteractiveTransform
in response.
Note that the TransformGesture
on its own has no visual impact, it only modifies the InteractiveTransform
, which provides the actual visual transformation. For example here is a simple image viewing setup:
<Panel HitTestMode="LocalBounds">
<Image File="my_image.jpg">
<InteractiveTransform ux:Name="ImageTrans"/>
</Image>
<ZoomGesture Target="ImageTrans"/>
<PanGesture Target="ImageTrans"/>
<RotateGesture Target="ImageTrans"/>
</Panel>
One InteractiveTransform
can be the target of multiple gestures. They will coorindate correctly with each other to provide a unified experience. The InteractiveTransform
will contain values that represent the total transformation.
For a complete list of single-finger gestures such as Tapped, LongPress etc., see Triggers.
A TransformGesture that provides panning (2D translation).
A TransformGesture that provides rotation.
A TransformGesture that provides zooming.
The list of bindings belonging to this node.
The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.
Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.
Whether rooting for this node is completed. Returns false if unrooting has started.
Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.
Run-time name of the node. This property is automatically set using the ux:Name attribute.
Returns the next sibling node of the given type.
If you override OnRooted
you must call base.OnRooted()
first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.
The parent Visual of this node. Will return null if the node is not rooted.
Returns the next sibling node of the given type.
A linked list holding data for extrinsic properties.
hide
hide
Interface for objects that can have a script engine representation
hide