I have an item controller which I bind to ObservableCollection<User>.
I ran into an issue where when there is only one user I would like to show a different ItemTemplate (just the Rating for example – and use default for everything else) and if there are more I would like to let people edit a bit more about them – combo box etc.
I though that probably there is a way of using converter for this, however I’m not sure how I can use converter to pick either one or another. So far I have managed to write a converter to hide/show two separate ItemControls dependable on Count of ObservableCollection<User> property. However, I don’t think this is the best way of solving this problem.
Are there better ways of solving this?
You need only one ItemsControl with template selection:
where