コード例 #1
0
        void compass_Calibrate(object sender, CalibrationEventArgs e)
        {
            Dispatcher.BeginInvoke(() => { calibrationStackPanel.Visibility = Visibility.Visible; });
            calibrating = true;

        }
コード例 #2
0
 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")
     );
 }
コード例 #3
0
		private void OnCompassCalibrate(object sender, CalibrationEventArgs e)
		{
			// Relay the event.
			Deployment.Current.Dispatcher.BeginInvoke(new Action(() =>
			{
				if (CompassCalibrationRequested != null)
				{
					CompassCalibrationRequested(this, EventArgs.Empty);
				}
			}));
		}
コード例 #4
0
 void compass_Calibrate(object sender, Microsoft.Devices.Sensors.CalibrationEventArgs e)
 {
     //throw new NotImplementedException();
     // TODO: pass calibration error to JS
 }
コード例 #5
0
 private void CalibrateRelay(object sender, CalibrationEventArgs e)
 {
     var handler = Calibrate;
     if (handler != null)
     {
         handler(sender, e);
     }
 }
コード例 #6
0
 void WrappedSubjectCalibrate(object sender, CalibrationEventArgs e)
 {
     CalibrateRelay(sender, e);
 }
コード例 #7
0
 private void compass_Calibrate(object sender, CalibrationEventArgs e)
 {
     isCalibrating = true;
     Dispatcher.BeginInvoke(UpdateCalibrateUI);
 }