UIPress.Force Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.