We have a project where we are using the xamTimeLine and need to controll the ScrollPosition and the ScrollScale from a presentation model via data binding. The objects in the timeline are also data bound from the presentationmodel. The objects data binding and the selected time data binding works just fine. But as we try to set the ScrollPosition and the ScrollScale we get random NullReferenceException when trying to set the properties that the ScrollPosition and the ScrollScale are bound to. We are using a DateTimeAxis to show the objects.
As the user selects a parent object in a list beside the time line, all the parents child objects are populated into the timeline, and then we need to jump to the correct date and also position and scale the scroll so that the user does'nt need to manually select the part in the timeline where the objects are.
We desperately need help as we see no way of continuing with out this to work as we then need to find a new timeline control and stop using yours.
Kind regards
Hannes Larsson
Hello Hannes,
Thank you for your post. I have been looking into it and I created a sample project for you showing how to bind the scroll and scale of the XamTimeLine’s DateTimeAxis. Also I can suggest you see this forum thread:
http://es.infragistics.com/community/forums/p/71592/364109.aspx#364109
where it is explained how to calculate the correct values for the scale and scroll. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.
Hi
It works as expected in the project you send over, also with the updates I added to mimic our setup. So I guess this can be a issue in our render cykle instead.
As for now I am satisfied with you answer and should we find anything else I will create a new task.
Thanks for the help!
Kind regads