I have no idea what to call it, so it may have already been reviewed many times.
I have a wrapper class for the collection: public class TreeCategory<T> : IEnumerable<T>
In my xaml I use the class in the HierarchicalDataTemplate as follows:
<HierarchicalDataTemplate x:Key="m_CategoryTemplate" DataType="{x:Type local:TreeCategory`1}" <--- WHAT IS THIS?! ItemsSource="{Binding CategoryCollection}" > <TextBox Text="{Binding CategoryName}" /> </HierarchicalDataTemplate>
So my question is that when building using local:TreeCategory assembly fails because the project complains that it does not know what the TreeCategory class TreeCategory . However, if I use:
TreeCategory`1
then the project builds great.
What is `1, why is it needed?
source share