Edit

Share via


UIPress.Force Property

Definition

Represents the force of the press in the range 0 to 1.

public virtual nfloat Force { [Foundation.Export("force")] get; }
member this.Force : nfloat

Property Value

0 indicates a minimal press, 1 a forceful press.

Attributes

Remarks

Digital buttons will set this value as either 0 or 1.

Developers should use TraitCollection.ForceTouchCapability == UIForceTouchCapability.Available to determine if the device in question is acting as a digital or analog button.

Applies to