Skip to content

Commit bd47a10

Browse files
ES-975464 - Added the image
1 parent f16cbcc commit bd47a10

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
39.5 KB
Loading

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# How to customize tree nodes using data template selector in WPF TreeView
1+
# How to Customize Tree Nodes Using Data Template Selector in WPF TreeView?
22

3-
This repository describes how to customize tree nodes using data template selector in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treeview) (SfTreeView)
3+
This repository describes how to customize tree nodes using data template selector in [WPF TreeView](https://www.syncfusion.com/wpf-controls/treeview) (SfTreeView).
44

55
The TreeView allows you to customize the appearance of each item with different templates based on specific constraints by using the [ItemTemplateSelector](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeView.SfTreeView.html#Syncfusion_UI_Xaml_TreeView_SfTreeView_ItemTemplateSelector). You can choose a [DataTemplate](https://docs.microsoft.com/en-us/dotnet/api/system.windows.datatemplate?view=netcore-3.1) for each item at runtime based on the value of data-bound property using `ItemTemplateSelector`.
66

@@ -56,4 +56,6 @@ class ItemTemplateSelector : DataTemplateSelector
5656
return Application.Current.MainWindow.FindResource("ChildTemplate") as DataTemplate;
5757
}
5858
}
59-
```
59+
```
60+
61+
![Customizing the appreance of the tree nodes using DataTemplateSelector](CustomizeAppearanceUsingTemplateSelector.png)

0 commit comments

Comments
 (0)