/syncfusion-wpf:syncfusion-wpf-treeviewfrom Syncfusion WPF Controls
Comprehensive guide for implementing Syncfusion WPF TreeView (SfTreeView) control to display hierarchical data in Windows Presentation Foundation applications. Use this when working with tree structures, folder hierarchies, organizational charts, or parent-child data relationships. Supports drag-and-drop reordering, checkbox selection, load-on-demand for large datasets, and inline editing of tree nodes.
Ships in Syncfusion WPF Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The Syncfusion WPF TreeView (SfTreeView) is a powerful data-oriented control for displaying hierarchical data in a tree structure with expanding and collapsing nodes. It's commonly used to display folder structures, organizational hierarchies, category trees, and nested relationships in WPF applications.
Use this skill when you need to:
This skill provides comprehensive guidance for all TreeView features, from basic setup to advanced customization.
Key Capabilities:
📄 Read: references/getting-started.md
📄 Read: references/data-population.md
📄 Read: references/selection.md
📄 Read: references/checkboxes.md
📄 Read: references/editing.md
📄 Read: references/drag-and-drop.md
📄 Read: references/tree-structure.md
📄 Read: references/appearance.md
📄 Read: references/crud-operations.md
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns:Engine="clr-namespace:Syncfusion.UI.Xaml.TreeView.Engine;assembly=Syncfusion.SfTreeView.WPF">
<Grid>
<syncfusion:SfTreeView x:Name="treeView" Width="300">
<syncfusion:SfTreeView.Nodes>
<Engine:TreeViewNode Content="Documents" IsExpanded="True">
<Engine:TreeViewNode.ChildNodes>
<Engine:TreeViewNode Content="Reports"/>
<Engine:TreeViewNode Content="Invoices"/>
</Engine:TreeViewNode.ChildNodes>
</Engine:TreeViewNode>
<Engine:TreeViewNode Content="Pictures" IsExpanded="True">
<Engine:TreeViewNode.ChildNodes>
<Engine:TreeViewNode Content="Vacation"/>
<Engine:TreeViewNode Content="Family"/>
</Engine:TreeViewNode.ChildNodes>
</Engine:TreeViewNode>
</syncfusion:SfTreeView.Nodes>
</syncfusion:SfTreeView>
</Grid>
</Window>
<syncfusion:SfTreeView x:Name="treeView"
ItemsSource="{Binding Folders}"
ChildPropertyName="SubFolders"
AutoExpandMode="RootNodes">
<syncfusion:SfTreeView.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding FolderName}"
VerticalAlignment="Center"/>
</DataTemplate>
</syncfusion:SfTreeView.ItemTemplate>
</syncfusion:SfTreeView>
// ViewModel
public class ViewModel : INotifyPropertyChanged
{
public ObservableCollection<Folder> Folders { get; set; }
public ViewModel()
{
Folders = new ObservableCollection<Folder>
{
new Folder
{
FolderName = "Documents",
SubFolders = new ObservableCollection<Folder>
{
new Folder { FolderName = "Reports" },
new Folder { FolderName = "Invoices" }
}
}
};
}
}
public class Folder : INotifyPropertyChanged
{
public string FolderName { get; set; }
public ObservableCollection<Folder> SubFolders { get; set; }
}
<syncfusion:SfTreeView x:Name="treeView"
ItemsSource="{Binding Items}"
ChildPropertyName="Children"
SelectionMode="Multiple"
CheckBoxMode="Recursive"
CheckedItems="{Binding CheckedItems}"
ItemTemplateDataContextType="Node">
<syncfusion:SfTreeView.ItemTemplate>
<DataTemplate>
<Grid>
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}"
FocusVisualStyle="{x:Null}"/>
<TextBlock Text="{Binding Content.Name}"
Margin="25,0,0,0"
VerticalAlignment="Center"/>
</Grid>
</DataTemplate>
</syncfusion:SfTreeView.ItemTemplate>
</syncfusion:SfTreeView>
<syncfusion:SfTreeView x:Name="treeView"
ItemsSource="{Binding Items}"
ChildPropertyName="Children"
LoadOnDemandCommand="{Binding LoadOnDemandCommand}"/>
public class TreeViewViewModel
{
public ICommand LoadOnDemandCommand { get; }
public TreeViewViewModel()
{
LoadOnDemandCommand = new RelayCommand(LoadChildren);
}
private void LoadChildren(object param)
{
var node = param as TreeViewNode;
if (node.ChildNodes.Count == 0)
{
node.PopulateChildNodes(new List<MyModel>
{
new MyModel { Name = "Child 1" },
new MyModel { Name = "Child 2" }
});
node.IsExpanded = true;
}
}
}
public class MyModel
{
public string Name { get; set; }
// Used for hierarchical binding (important for TreeView)
public List<MyModel> Children { get; set; }
}
<syncfusion:SfTreeView x:Name="treeView"
ItemsSource="{Binding Items}"
ChildPropertyName="Children"
AllowDragging="True"
SelectionMode="Multiple"
ItemDropping="TreeView_ItemDropping"/>
private void TreeView_ItemDropping(object sender, TreeViewItemDroppingEventArgs e)
{
// Validate drop operation
if (!IsValidDrop(e.TargetNode, e.DraggingNodes))
{
e.Handled = true; // Cancel drop
}
}
| Property | Type | Description |
|---|---|---|
ItemsSource | IEnumerable | Data source for bound mode |
ChildPropertyName | string | Property name for child collection |
SelectionMode | SelectionMode | Single, Multiple, Extended, etc. |
SelectedItem | object | Currently selected item |
SelectedItems | ObservableCollection | Multiple selected items |
CheckBoxMode | CheckBoxMode | None, Default, Recursive |
CheckedItems | ObservableCollection | Checked items collection |
AllowDragging | bool | Enable drag and drop |
AllowEditing | bool | Enable inline editing |
AutoExpandMode | AutoExpandMode | AllNodes, RootNodes, None |
ExpandActionTrigger | ExpandActionTrigger | Node or Expander click |
ShowLines | bool | Display tree lines |
ItemTemplate | DataTemplate | Template for item display |
EditTemplate | DataTemplate | Template for editing mode |
ExpanderTemplate | DataTemplate | Template for expander icon |
Display folder and file hierarchies with icons, allowing users to navigate, select, and manage files with drag-and-drop.
Show company hierarchy with employee nodes, supporting selection and expansion to view team structures.
Display product categories with checkboxes for multi-selection, enabling bulk operations on category trees.
Show project files and folders with load-on-demand for large projects, supporting inline editing of file names.
Display nested configuration options with checkboxes for enabling/disabling features hierarchically.
Create hierarchical navigation menus with expandable sections and visual tree lines.
Next Steps: Navigate to the specific reference documentation above based on the feature you need to implement. Start with getting-started.md for initial setup, then explore other features as needed.
references/appearance.md (opens in a new tab)references/checkboxes.md (opens in a new tab)references/crud-operations.md (opens in a new tab)references/data-population.md (opens in a new tab)references/drag-and-drop.md (opens in a new tab)references/editing.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/selection.md (opens in a new tab)references/tree-structure.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-wpf96 skills in this plugin
/syncfusion-wpf-3d-chartComprehensive guide for implementing Syncfusion WPF 3D Charts (SfChart3D) control for 3D data visualization in Windows Presentation Foundation applications. Use this when working with 3D charts, 3D visualization, or depth axis configurations. This skill covers 3D series types (column, pie, bar), Manhattan charts, 3D rotation, X/Y/Z coordinate plotting, and depth axis configuration for WPF applications./syncfusion-wpf-accordionImplement Syncfusion WPF SfAccordion for collapsible and expandable panel layouts. Use this when working with accordion controls, expandable panels, or collapsible section navigation in WPF. Covers populating items declaratively or via data binding, selection modes (One/OneOrMore/ZeroOrOne/ZeroOrMore), programmatic selection, appearance customization (AccentBrush, HeaderTemplate, ContentTemplate), and theming with SfSkinManager./syncfusion-wpf-ai-assistviewImplement Syncfusion WPF SfAIAssistView for AI chat and conversational assistant interfaces. Use this when building AI assistant UIs, message threads with AI responses, or integrating OpenAI/SemanticKernel in WPF. Covers typing indicators, suggestions, input/response toolbars, stop-responding features, conversation history, input placeholder text, empty view templates, and PromptRequest events using Syncfusion.SfChat.Wpf.Other plugins' skills for the same job