This is a migrated thread and some comments may be shown as answers.

Custom Style for Milestones

1 Answer 136 Views
TimeLine
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 11 Jul 2012, 08:32 AM
Hi, I would like to define a custom style for milestones. How to do that?
It looks like a TimelineItem is regarded to be a milestone if it's duration is zero - I guess this is the standard behavior of RadTimeline.

In the examples, the ItemTemplateSelector-property of RadTimeline is used, and DataTemplateSelectors in the ViewModel. Do I have to use these to define my own style for a milestone?

And another (maybe tricky) question: Is it possible to define a style for a milestone like in the attached image, so that each milestone has a dashed line going from the top of the control to the bottom?
As I understand it, the positions of the TimelineItems are calculated by RadTimeline, so if the custom style of the milestones would include such a dashed line (which would be an element with a very large height) that would be a problem, I guess?

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 12 Jul 2012, 11:48 AM
Hi Johannes,

Yes, you can define your custom style for any of the timeline items, just as demonstrates in our demos. Here is a link to our online Silverlight demos, the approach is the same for WPF.

Regarding your second question - I am not quite sure you will be able to achieve this result with a custom template for the timeline items, but you can try. Basically, we are working on support for annotations that will help you in this respect but I cannot commit a specific timeframe for the availability of this feature.

All the best,
Tsvetie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TimeLine
Asked by
Johannes
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or