Now that I have a somewhat useable vertical scrollbar on the timeline I'm working on a template item selector. I have managed to get it to work despite the fact that the information in this link is incorrect: Customizing Items
In the customizing example that shows how to implement the template selector you're supposed to add a property to your viewmodel called CustomItemTemplateSelector
that the example doesn't actually do anything with.
Binding your template selector to the static resource "ItemTemplateSelector" like this does not do anything:
You have to bind it to the property "CustomItemTemplateSelector
" in your viewmodel like this in order for the CustomItemTemplateSelector
class to be hit at all:
Why create a property if you're not going to use it? Also, naming the class and the property the same thing just confuses things.
This statement in the example is wrong as well:
"Now in XAML you may create an instance of the CustomItemTemplateSelector class, set the DataTemplates and provide it to the ItemTemplateSelector
You have to provide the instance of the CustomItemTemplateSelector class to the CustomItemTemplateSelector property in the ViewModel - same names make it confusing right?
And then in order for it to work you have to bind that property to the item template selector in the timeline...
You might wan to fix that.