FitIntoView() crashes when called from Page.Loaded
#1
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
  


Messages In This Thread
FitIntoView() crashes when called from Page.Loaded - by abutler77 - 03-22-2016, 03:00 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)