void compass_Calibrate(object sender, CalibrationEventArgs e) { Dispatcher.BeginInvoke(() => { calibrationStackPanel.Visibility = Visibility.Visible; }); calibrating = true; }
void compassSensor_Calibrate(object sender, CalibrationEventArgs e) { Dispatcher.BeginInvoke(() => MessageBox.Show("The compass sensor needs to be calibrated. Wave the phone around in the air until the heading accuracy value is less than 20 degrees") ); }
private void OnCompassCalibrate(object sender, CalibrationEventArgs e) { // Relay the event. Deployment.Current.Dispatcher.BeginInvoke(new Action(() => { if (CompassCalibrationRequested != null) { CompassCalibrationRequested(this, EventArgs.Empty); } })); }
void compass_Calibrate(object sender, Microsoft.Devices.Sensors.CalibrationEventArgs e) { //throw new NotImplementedException(); // TODO: pass calibration error to JS }
private void CalibrateRelay(object sender, CalibrationEventArgs e) { var handler = Calibrate; if (handler != null) { handler(sender, e); } }
void WrappedSubjectCalibrate(object sender, CalibrationEventArgs e) { CalibrateRelay(sender, e); }
private void compass_Calibrate(object sender, CalibrationEventArgs e) { isCalibrating = true; Dispatcher.BeginInvoke(UpdateCalibrateUI); }