Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Update scene position from zoombar on mouse move instead of on mouse leave
posted

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!

Parents
  • 34810
    Verified Answer
    Offline posted

    Hello Olivier,

    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.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

Reply Children
No Data