private void MySceneView_LayerLoaded(object sender, Esri.ArcGISRuntime.Controls.LayerLoadedEventArgs e)
 {
     if (e.LoadError == null)
     {
         if (e.Layer.ID == "AGOLayer")
         {
             MySceneView.SetView(new Camera(new MapPoint(-106.882128302391, 38.7658957449754, 12994.1727461051),
                                            358.607816178049, 70.0562968167998));
         }
     }
 }
        private async void MySceneView_SpatialReferenceChanged(object sender, System.EventArgs e)
        {
            MySceneView.SpatialReferenceChanged -= MySceneView_SpatialReferenceChanged;

            try
            {
                // Set first one to starting point
                MySceneView.SetView(_animationViewpoints[0]);

                await MySceneView.LayersLoadedAsync();

                // Set navigation in the order we want to animate the camera
                await MySceneView.SetViewAsync(_animationViewpoints[1], 0.2, true);

                await MySceneView.SetViewAsync(_animationViewpoints[2], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[3], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[4], 0.4, false);

                await MySceneView.SetViewAsync(_animationViewpoints[5], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[6], 0.3, false);

                await MySceneView.SetViewAsync(_animationViewpoints[7], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[8], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[9], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[10], 0.3, false);

                await MySceneView.SetViewAsync(_animationViewpoints[11], 0.3, false);

                await MySceneView.SetViewAsync(_animationViewpoints[12], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[13], 0.2, false);

                await MySceneView.SetViewAsync(_animationViewpoints[14], 0.2, false);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error occured while navigating to the target viewpoint",
                                "An error occured");
                Debug.WriteLine(ex.ToString());
            }
        }
        private void MySceneView_SpatialReferenceChanged(object sender, System.EventArgs e)
        {
            MySceneView.SpatialReferenceChanged -= MySceneView_SpatialReferenceChanged;

            try
            {
                // Set initial viewpoint
                MySceneView.SetView(
                    new Camera(
                        new MapPoint(-106.882128302391, 38.7658957449754, 12994.1727461051,
                                     SpatialReferences.Wgs84),
                        358.607816178049,
                        70.0562968167998));
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error occured while setting initial viewpoint",
                                "An error occured");
                Debug.WriteLine(ex.ToString());
            }
        }