Zoom In/Out for Scene View

2369
0
05-30-2016 01:16 AM
VincentOng
New Contributor

Hi all, I want  to make a basic tools like zoom in, zoom out button for my Scene View, however I am facing a problem and that the Camera Zoom option does not seem to work. Can anyone out there kindly help me?

private async void ZoomIn_Button_Click(object sender, RouteEventArgs e)

{
     var setCamera = MySceneView.Camera;

     if(setCamera != null)

     {

          await MySceneView.SetViewAsync(setCamera.ZoomToward(setCamera.Location, 1.5));

     }

}

0 Kudos
0 Replies