10-29-2009, 10:32 PM
I think you should set the FillBehavior to Stop.
daDistance.FillBehavior = System.Windows.Media.Animation.FillBehavior.Stop;
By default it is set to HoldEnd that prevents any other changes.
daDistance.FillBehavior = System.Windows.Media.Animation.FillBehavior.Stop;
By default it is set to HoldEnd that prevents any other changes.
(10-26-2009, 09:51 PM)richardpruitt96 Wrote: If I animate a scene camera's distance property it causes the mouse wheel to no longer function.
DoubleAnimation daDistance = new DoubleAnimation();
daDistance.From = sceneCamera.Distance;
daDistance.To = ZoomDistance;
daDistance.Duration = new System.Windows.Duration(TimeSpan.FromSeconds(2.0))
sceneCamera.BeginAnimation(Ab3d.Cameras.SceneCamera.DistanceProperty, daDistance, HandoffBehavior.Compose);
I have a MouseCameraController tied to the same viewport. After the animation is over I can no longer use the mouse wheel to zoom in and out, yet the rotate still works.
Any ideas?

