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
145
Dragging timeline position
posted

Hi,

 

what i really really miss is dragging on the event bar part (not zoombar part).
I had mad you an image of what i mean:

Do you mean i can extend the timeline to work this way?

Regards steffen

Parents
No Data
Reply
  • 30945
    Suggested Answer
    Offline posted

    Hello Steffen,

     

    Thank you for your post. I have been reading through it and if I understand correctly you wish to be able to scroll the XamTimeline when you drag click on the Scene and drag left and right. I have created a sample application for you which demonstrates how you can avhieve that functionality using the MosueMove event of the XamTimeline. In the sample application I have created a class that derives form XamTimeline and override its OnMouseMove method and put the logic for the dragging there.  I have also added a style for the new class that uses the default template for the XamTimeline. I have added a name to one of the borders in the template (the name is dragBorder) and I am using that name to determine where the mouse is over, by the checking the e.OriginalSource  in the OnMouseMove method. I have also override the OnMouseWheel method of the XamTimeline and added the ability to zoom the control using the mouse wheel.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    XamTimelineChangeRectByDragging.zip
Children