CameraAxisPanel exception
#4
I did some additional testing and found a way to reproduce the problem.

The exception was thrown in CameraAxisPanel when the Is3DAxesShown property is set to false and the CameraAxisPanel was not yet loaded and its TargetCamera is already set.

One example of this is when the CameraAxisPanel is defined in code behind:

var cameraAxisPanel = new CameraAxisPanel();

cameraAxisPanel.TargetCamera = Camera1;
cameraAxisPanel.Is3DAxesShown = false; // This has thrown an exception
cameraAxisPanel.IsAxisNameShown = false;

This has been already fixed and will not happen any more in the future.

For the current version the workaround is to define the TargetCamera as the last property that is set in CameraAxisPanel. Another workaround is to set define the
CameraAxisPanel in XAML.
Andrej Benedik
  


Messages In This Thread
CameraAxisPanel exception - by tim_rutter - 06-23-2016, 10:27 PM
RE: CameraAxisPanel exception - by abenedik - 07-18-2016, 02:28 PM
RE: CameraAxisPanel exception - by tim_rutter - 07-19-2016, 11:07 AM
RE: CameraAxisPanel exception - by abenedik - 07-20-2016, 06:21 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)