title: How to make ItemsControl choose different templates depending on run-time type
body: <p>I have a xaml page that has an ItemsControl control on it. ItemsControl is bound to Guests which is ObservableCollection. Guests collection can have objects of two different types: USGuest and UKGuest, both inheriting from Guest. Is it possible to make two (or more) templates for ItemsControl and make it automatically choose between them depending on the run-time type of the current item in collection?</p>