Hello,
Is there a solution to update the scene position according to the ZoomBar on mouse move instead of on mouse leave ?
Thanks for you help!
Thanks for your help, it works!
Olivier
Hello Olivier,
Just checking in, did you have any other questions or concerns on this matter?
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Thank you for your post!
To achieve your requirement, I would recommend that you start by handling the Loaded event on the XamTimeline. This is necessary because this is where the XamZoombar will not be null. Inside of the Loaded event, you can hook into the ZoomChanging event on the XamZoombar by using MyXamTimeline.Zoombar.ZoomChanging += myZoomChangingEvent.
The ZoomChanging event will fire any time that the zoom-area of the XamZoombar is modified. The event arguments of this event has a property named NewRange so that you can retrieve the range that the XamZoombar will have when you commit the change, by releasing the mouse-drag and making the modification. This NewRange property has properties of its own named Scale and Scroll. If you apply these properties to the XamTimeline's Axis, you will see an immediate update to the scene position on mouse move instead of mouse leave. You can utilize the following code within the XamZoombar's ZoomChanging event to achieve your requirement:
MyXamTimeline.Axis.ScrollScale = e.NewRange.Scale;MyXamTimeline.Axis.ScrollPosition = e.NewRange.Scroll;
Please let me know if you have any other questions or concerns on this matter.