AnsweredAssumed Answered

Zoom In/Out for Scene View

Question asked by vincentong1 on May 30, 2016

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));

     }

}

Outcomes