Share via

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 Calibrate As EventHandler(Of CalibrationEventArgs)
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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1


Windows Phone

See Also


Compass Class

Microsoft.Devices.Sensors Namespace