05-31-2015, 04:01 PM
Hi
I'm also having issues with this.
I TwoWay bind the scene cameras heading property to my viewmodel.
I the have a 'reset view' function which animates thing back to a default view.
The animation works fine, but the MouseCameraController I have no longer works!! So I can't move the scene anymore with the mouse.
There must be a simple explanation but I cant figure it out.
I have tried to rebind the Heading property to my viewmodel in code but that did not work.
It is the MouseCameraController that needs rebinding??
Thanks in advance.. Jason.
I'm also having issues with this.
I TwoWay bind the scene cameras heading property to my viewmodel.
I the have a 'reset view' function which animates thing back to a default view.
Code:
// reset heading
DoubleAnimation daHeading = new DoubleAnimation();
daHeading.From = App.ViewModel.ProjectMissionVM.ActiveProjectMission.SceneCameraHeading;
daHeading.To = 0;
daHeading.Duration = new System.Windows.Duration(TimeSpan.FromMilliseconds(1000));
daHeading.FillBehavior = System.Windows.Media.Animation.FillBehavior.HoldEnd;
SceneCamera.BeginAnimation(Ab3d.Cameras.SceneCamera.HeadingProperty, daHeading, HandoffBehavior.Compose);The animation works fine, but the MouseCameraController I have no longer works!! So I can't move the scene anymore with the mouse.
There must be a simple explanation but I cant figure it out.
I have tried to rebind the Heading property to my viewmodel in code but that did not work.
It is the MouseCameraController that needs rebinding??
Thanks in advance.. Jason.

