Table of Contents

Class TranslateZoomRotateBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

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

DependencyProperty

MaximumScaleProperty

public static readonly DependencyProperty MaximumScaleProperty

Field Value

DependencyProperty

MinimumScaleProperty

public static readonly DependencyProperty MinimumScaleProperty

Field Value

DependencyProperty

RotationalFrictionProperty

public static readonly DependencyProperty RotationalFrictionProperty

Field Value

DependencyProperty

SupportedGesturesProperty

public static readonly DependencyProperty SupportedGesturesProperty

Field Value

DependencyProperty

TranslateFrictionProperty

public static readonly DependencyProperty TranslateFrictionProperty

Field Value

DependencyProperty

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

bool

MaximumScale

Gets or sets a number indicating the maximum zoom value allowed.

public double MaximumScale { get; set; }

Property Value

double

MinimumScale

Gets or sets a number indicating the minimum zoom value allowed.

public double MinimumScale { get; set; }

Property Value

double

RotationalFriction

Gets or sets a number describing the rate at which the rotation will decrease.

public double RotationalFriction { get; set; }

Property Value

double

SupportedGestures

Gets or sets a value specifying which zooming and translation variants to support.

public ManipulationModes SupportedGestures { get; set; }

Property Value

ManipulationModes

TranslateFriction

Gets or sets a number describing the rate at which the translation will decrease.

public double TranslateFriction { get; set; }

Property Value

double

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.