03-22-2016, 03:00 AM
Hi. In my Page.Loaded handler, I create my visual objects and then add them to the viewport. I then want to adjust the camera so that the objects are centered on the screen and fit to the view. If I call Camera.FitIntoView(), inside the Page.Loaded handler, then it crashes with a NullReference Exception.
Camera.FitIntoView() works fine elsewhere in the code. I have connected it to a double click event on the screen.
Regards,
Arthur
Camera.FitIntoView() works fine elsewhere in the code. I have connected it to a double click event on the screen.
Regards,
Arthur