Calibrate Event
Collapse the table of content
Expand the table of content

Compass.Calibrate Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when the operating system detects that the compass needs calibration.

Namespace:  Microsoft.Devices.Sensors
Assembly:  Microsoft.Devices.Sensors (in Microsoft.Devices.Sensors.dll)
XMLNS for XAML: Not mapped to an xmlns.

public event EventHandler<CalibrationEventArgs> Calibrate
<object Calibrate="EventHandler<CalibrationEventArgs>" .../>

The device’s compass sensor may occasionally require user-assisted calibration. If the HeadingAccuracy exceeds +/- 20 degrees, this event is raised. Applications should implement their own calibration user interface. For information about implementing compass calibration, see How to get data from the compass sensor for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft