While trying to investigate the usage of the Breadcrumb control within my MVVM application, I have noticed that the control does not automatically use DataTemplates/HierarchicalDataTemplates that are located in the current resource path, but instead requires the ItemTemplate property to be set explicitly on both the BreadCrumb control as well as the HierarchicalDataTemplates themselves.
The similarly hierarchical TreeView control automatically looks in the resources for a Hierarchical/DataTemplate that matches the bound item type.
This limitation seems problematic, as A) it adds complexity and unnecessary coupling, and B) it means that the control can therefore only work with a single ViewModel type within the child collection.
Or am I missing something fundamental?
Even the BreadCrumbPopulation sample where it states "The Breadcrumb control fully supports the HierarchicalDataTemplate class, by utilizing its ItemsSource property and associated properties. Styles must still be used to set certain visual aspects of the data, such as the icon shown on the context menus." still uses explicit ItemTemplate properties, which seems to counterintuitive from the description.
Thank you kindly.