Hi Richard,
Thank you for contacting Syncfusion Support.
We have analyzed your query and prepared sample to meet your requirement. We can achieve your requirement by customizing the ItemTemplate of TreeView. Kindly make use of below codes,
Code Snippet: [XAML]
<syncfusion:TreeViewAdv.ItemTemplate>
<HierarchicalDataTemplate ItemsSource="{Binding SubItems}">
<TextBlock Text="{Binding Header}" Foreground="{Binding ForeColor}" />
</HierarchicalDataTemplate>
</syncfusion:TreeViewAdv.ItemTemplate>
|
Code Snippet: [C#]
Model Root1 = new Model() { Header = "Root1", ForeColor = new SolidColorBrush(Colors.Red) }; |
Screenshot :
Please download the sample from the following location.
Regards,
Durga S.