Is it possible to have multiple item source bindings in xaml on a wpf control.
Currently I am using mvvm pattern and have an item binding that is bound to one object type.
ItemSource="{Binding ProcessModel}"
this then has a ItemTemplate
ItemTemplate="{DynamicResource PMDataTemplete}"
This currently is fine as I was only using one type of object. I want to extend this so I can have one or a 2nd different type of object, but it does not need to be able to bind to both at the same time.
What I am trying to achieve is the situation where one object type can be bound depending on what the user selects and the binding will work and again if the user takes a different route the other type of object is displayed on the same control.
So it is almost the idea of having a case statement based on object types for the itemsource.
Write your own ItemTemplateSelector (more flexible, but more complex) or define data templates for the types need to be rendered in ItemsControl.