WPF hierarchical table

Can anyone explain how the HierarchicalDataTemplate works

  • What controls support the HierarchicalDataTemplate?
  • What is needed to support the HierarchicalDataTemplate control?

UPDATE

  • What causes the TreeView to render the parent and child nodes when the same Hierarchical DataTemplate in the HeaderedItemsControl calls only the parent that will be displayed?
+3
source share
2 answers

Such control must be of type HeaderedItemsControl or derived from it. Existing wireframe controls are MenuItem, ToolBar, and TreeViewItem.

HeaderedItemsControl PrepareContainerForItemOverride - HierarchicalDataTemplate.

+1

HierarchicalDataTemplate?

, HeaderedItemsControl, TreeViewItem MenuItem

HierarchicalDataTemplate?

HeaderedItemsControl

+3

Source: https://habr.com/ru/post/1714243/


All Articles