Class TranslateZoomRotateBehavior
Allows the user to use common touch gestures to translate, zoom, and rotate the attached object.
public class TranslateZoomRotateBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
- Inheritance
-
TranslateZoomRotateBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
ConstrainToParentBoundsProperty
public static readonly DependencyProperty ConstrainToParentBoundsProperty
Field Value
MaximumScaleProperty
public static readonly DependencyProperty MaximumScaleProperty
Field Value
MinimumScaleProperty
public static readonly DependencyProperty MinimumScaleProperty
Field Value
RotationalFrictionProperty
public static readonly DependencyProperty RotationalFrictionProperty
Field Value
SupportedGesturesProperty
public static readonly DependencyProperty SupportedGesturesProperty
Field Value
TranslateFrictionProperty
public static readonly DependencyProperty TranslateFrictionProperty
Field Value
Properties
ConstrainToParentBounds
Gets or sets the value indicating whether the zoom and translate position of the attached object is limited by the bounds of the parent object.
public bool ConstrainToParentBounds { get; set; }
Property Value
MaximumScale
Gets or sets a number indicating the maximum zoom value allowed.
public double MaximumScale { get; set; }
Property Value
MinimumScale
Gets or sets a number indicating the minimum zoom value allowed.
public double MinimumScale { get; set; }
Property Value
RotationalFriction
Gets or sets a number describing the rate at which the rotation will decrease.
public double RotationalFriction { get; set; }
Property Value
SupportedGestures
Gets or sets a value specifying which zooming and translation variants to support.
public ManipulationModes SupportedGestures { get; set; }
Property Value
TranslateFriction
Gets or sets a number describing the rate at which the translation will decrease.
public double TranslateFriction { get; set; }
Property Value
Methods
OnAttached()
Called after the behavior is attached to an AssociatedObject.
protected override void OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the behavior is getting detached from its AssociatedObject, but before it has actually occurred.
protected override void OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.