void _client_OneTimePedometerUpdated(object sender, PedometerUpdatedEventArgs e) { _client.SensorUnsubscribe(SensorType.Pedometer); TotalSteps = e.TotalSteps; TotalMovements = e.TotalMovements; _client.PedometerUpdated -= _client_OneTimePedometerUpdated; }