Could anyone explain how HierarchicalDataTemplate works
UPDATE
What Controls supports HierarchicalDataTemplate?
All controls that inherit HeaderedItemsControl, such as TreeViewItem or MenuItem
What does a control need to support HierarchicalDataTemplate?
Inheriting from HeaderedItemsControl should be enough
Such control needs to be of type HeaderedItemsControl or derived from it. The current framework controls that do are MenuItem, ToolBar and TreeViewItem.
The HeaderedItemsControl overrides the PrepareContainerForItemOverride method and somewhere along that call path checks for HierarchicalDataTemplate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With