Databinding the <timeline:UriInfo Url="{..}">?

Dec 16, 2009 at 4:27 PM

Hi, this is a great control!
I tested it for one of my apps and I would like to use a binding statement in XAML for the <timeline:UriInfo Url=".."> tag ... basically, I want to use this:

<timeline:UriInfo Url="{Binding someCustomURL}" />

However, it does not seem to work.
Next, I tried to use a string to URI converter:

<timeline:UriInfo Url="{Binding someCustomURL, Converter={StaticResource UriConverter}}" />

but this does not work as well ... both the data and the converter work correctly otherwise.
Is there anything I am missing? How could I do it?

Many thanks

Dec 16, 2009 at 5:39 PM

Michael, binding of url is not supported. If you need to dynamically reload timeline data you are to call timeline.ClearEvents() and then timeline.ResetEvents(XDocument.Parse([xml string with content of events])). See TimelineSL project for details. Let me know if this is a problem.

Dec 17, 2009 at 10:30 AM

No worries, I got it to work ... I just thought having standard binding mechanism might make it easier to build dynamic timelines without code ...

Thanks again!