Edit

Share via


InertiaExpansionBehavior.DesiredExpansion Property

Definition

Gets or sets the amount the element resizes at the end of inertia.

public:
 property System::Windows::Vector DesiredExpansion { System::Windows::Vector get(); void set(System::Windows::Vector value); };
public System.Windows.Vector DesiredExpansion { get; set; }
member this.DesiredExpansion : System.Windows.Vector with get, set
Public Property DesiredExpansion As Vector

Property Value

The amount the element resizes at the end of inertia. The default is a Vector that has its X and Y properties set to NaN.

Remarks

Use the DesiredExpansion property to specify the desired expansion of the manipulation when inertia ends. Set either the DesiredExpansion or the DesiredDeceleration, but not both. When you set one of these properties, the other property is changed to Double.NaN if it has a value.

For more information about manipulations, see the Input Overview. For an example of an application that responds to manipulations, see Walkthrough: Creating Your First Touch Application.

Applies to