Questions tagged [hierarchicaldatatemplate]

A `HierarchicalDataTemplate` is a subclass of `DataTemplate` that allows you to bind directly to a hierarchy of objects

A HierarchicalDataTemplate is a subclass of DataTemplate that allows you to bind directly to a hierarchy of objects. This provides a powerful means to bind a hierchy of objects to wpf controls that deal with such data, such as TreeViews and Menus.

305 questions
-1
votes
1 answer

One template for multiple similar HierarchicalDataTemplate-s?

I have a TreeView component, and it can contain several types of nodes. Its all working well except I have multiple hierarchical data templates which differ just in the glyph image they display, DataType and ItemsSource but everything else is…
Vlad
  • 2,739
  • 7
  • 49
  • 100
-1
votes
1 answer

Method of recursively adding depth into a tree grid view

so right now I currently have a tree grid view that has up to 3 levels of expansion cause I manually wrote in a nested hierarchical data template within another data template, I'm wondering if there is a method to automatically add depth into my…
Linsel
  • 15
  • 4
-1
votes
1 answer

How to pass a ConverterParameter into a HierarchicalDataTemplate

I have two HierarchicalDataTemplates that are identical, except for the ConverterParameter used for the ItemsSource property:
mike
  • 1,627
  • 1
  • 14
  • 37
-1
votes
1 answer

HierarchicalDataTemplate doesn't display items without children

In a previous question I wanted to know, how to set up the HierarchicalDataTemplate for a TreeView. This just works fine. My problem now is the following: The class ClassPupils looks like: public class ClassPupils { public ClassPupils(Class…
Tomtom
  • 9,087
  • 7
  • 52
  • 95
-4
votes
2 answers

How to move xaml code inside HierarchicalDataTemplate to a resource

I have the following TreeView with several HierarchicalDataTemplates. Inside every HierarchicalDataTemplate I have a block of xaml code to define the structure of my object X. TreeView Example
Stan1k
  • 338
  • 2
  • 17
1 2 3
20
21