private void ElevationSlider_DeltaProgressChanged(object sender, Forms.Resources.DeltaChangedEventArgs e) { // Add the new value to the existing altitude offset. _altitudeOffset += e.DeltaProgress; // Update the altitude offset on the custom location data source. _locationDataSource.AltitudeOffset = _altitudeOffset; }
private void HeadingSlider_DeltaProgressChanged(object sender, Forms.Resources.DeltaChangedEventArgs e) { // Get the old camera. Camera camera = MyARSceneView.OriginCamera; // Calculate the new heading by applying the offset to the old camera's heading. double heading = camera.Heading + e.DeltaProgress; // Create a new camera by rotating the old camera to the new heading. Camera newCamera = camera.RotateTo(heading, camera.Pitch, camera.Roll); // Use the new camera as the origin camera. MyARSceneView.OriginCamera = newCamera; }