Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-wpf-treeview同步融合 wpf 树视图

Agent Skill

syncfusion-wpf-treeview 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,123

周安装

45

GitHub Stars

2

下载量

364
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-wpf-treeview(同步融合 wpf 树视图)
来源仓库:https://github.com/syncfusion/wpf-ui-components-skills
仓库路径:skills/syncfusion-wpf-treeview
安装命令:
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-treeview
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/wpf-ui-components-skills --skill syncfusion-wpf-treeview

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行信息整理。
  • 可结合来源仓库和 README 进一步核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 注意避免在不具备相应权限时执行写回或批量操作。syncfusion-wpf-treeview 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion WPF TreeView (SfTreeView)

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.

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical data in a tree structure (folders, categories, org charts)
  • Implement expandable/collapsible nodes with parent-child relationships
  • Enable selection in tree structures (single or multiple items)
  • Add checkbox functionality to tree nodes with recursive state management
  • Support drag-and-drop for reordering or reorganizing tree items
  • Enable inline editing of tree node content
  • Load data on demand for large hierarchical datasets
  • Bind data to TreeView from collections (bound or unbound modes)
  • Customize appearance with templates, themes, and visual styles
  • Display tree lines to visualize hierarchical relationships
  • Perform CRUD operations on tree data dynamically

This skill provides comprehensive guidance for all TreeView features, from basic setup to advanced customization.

Component Overview

Key Capabilities:

  • Data Binding Modes: Bound (data source) and Unbound (manual nodes)
  • Selection: Single, Multiple, Extended with keyboard navigation
  • Checkboxes: Individual or recursive state management
  • Drag & Drop: Within TreeView or to other controls
  • Editing: Inline editing with templates and validation
  • Load on Demand: Lazy loading for performance with large datasets
  • Customization: Full template support for items, expanders, and editing
  • Tree Lines: Visual indicators for hierarchical structure
  • Performance: Optimized view reuse and flat rendering architecture

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly deployment
  • NuGet package setup (Syncfusion.SfTreeView.WPF)
  • Required assembly references
  • Namespace imports (XAML and C#)
  • Creating basic TreeView in XAML
  • Creating TreeView programmatically
  • License configuration

Data Population

📄 Read: references/data-population.md

  • Unbound mode (TreeViewNode objects)
  • Bound mode (hierarchical data source binding)
  • ChildPropertyName for nested collections
  • HierarchyPropertyDescriptors for complex hierarchies
  • ItemTemplate configuration
  • ItemsSource binding patterns
  • Data binding with MVVM

Selection

📄 Read: references/selection.md

  • Selection modes (None, Single, SingleDeselect, Multiple, Extended)
  • UI selection with mouse and keyboard
  • Programmatic selection (SelectedItem, SelectedItems)
  • Binding selection state to data model
  • Selection events (SelectionChanging, SelectionChanged)
  • CurrentItem property
  • Keyboard navigation

Checkboxes

📄 Read: references/checkboxes.md

  • Adding checkboxes to tree items
  • CheckBoxMode (None, Default, Recursive)
  • CheckedItems collection binding
  • Recursive checkbox state propagation
  • Programmatic check/uncheck
  • ItemTemplateDataContextType configuration
  • Checkbox in bound and unbound modes

Editing

📄 Read: references/editing.md

  • Enabling editing (AllowEditing property)
  • Edit triggers (F2 key, single click, double click)
  • EditTemplate and EditTemplateSelector
  • Programmatic editing (BeginEdit, EndEdit)
  • Editing events and validation
  • Committing and reverting changes
  • Edit mode in bound and unbound modes

Drag and Drop

📄 Read: references/drag-and-drop.md

  • Enabling drag and drop (AllowDragging)
  • Dragging multiple selected items
  • Drop position indicators
  • Drag and drop events (ItemDragStarting, ItemDragOver, ItemDropping, ItemDropped)
  • Dragging between TreeViews
  • Drag to other controls (ListView, DataGrid)
  • Customizing drag behavior

Tree Structure Features

📄 Read: references/tree-structure.md

  • Expanding and collapsing nodes
  • AutoExpandMode property
  • ExpandActionTrigger (Node, Expander)
  • Load on demand for lazy loading
  • Tree lines visualization (ShowLines property)
  • Expander template customization
  • Programmatic expand/collapse
  • ExpanderTemplate

Appearance and Customization

📄 Read: references/appearance.md

  • Item height customization
  • ItemTemplate and ItemTemplateSelector
  • Visual states and styling
  • Theming with SfSkinManager
  • Custom expander icons
  • Indentation and spacing control
  • Border and background customization
  • FullRowSelect property

CRUD Operations

📄 Read: references/crud-operations.md

  • Adding nodes programmatically
  • Removing nodes from TreeView
  • Updating node content
  • CRUD in bound vs unbound mode
  • Refreshing data and UI updates
  • Collection change handling

Quick Start Example

Basic Unbound TreeView

<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>

Basic Bound TreeView

<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; }
}

Common Patterns

TreeView with Selection and Checkboxes

<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>

TreeView with Load on Demand

<syncfusion:SfTreeView x:Name="treeView"
                       ItemsSource="{Binding Items}"
                       ChildPropertyName="Children"
                       LoadOnDemand="TreeView_LoadOnDemand"/>
private void TreeView_LoadOnDemand(object sender, LoadOnDemandEventArgs e)
{
    var node = e.Node;
    var model = node.Content as MyModel;

    // Load child items asynchronously
    var childItems = LoadChildItemsFromDatabase(model.Id);
    node.PopulateChildNodes(childItems);

    e.HasChildNodes = childItems.Count > 0;
}

TreeView with Drag and Drop

<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
    }
}

Key Properties

PropertyTypeDescription
ItemsSourceIEnumerableData source for bound mode
ChildPropertyNamestringProperty name for child collection
SelectionModeSelectionModeSingle, Multiple, Extended, etc.
SelectedItemobjectCurrently selected item
SelectedItemsObservableCollectionMultiple selected items
CheckBoxModeCheckBoxModeNone, Default, Recursive
CheckedItemsObservableCollectionChecked items collection
AllowDraggingboolEnable drag and drop
AllowEditingboolEnable inline editing
AutoExpandModeAutoExpandModeAllNodes, RootNodes, None
ExpandActionTriggerExpandActionTriggerNode or Expander click
ShowLinesboolDisplay tree lines
ItemTemplateDataTemplateTemplate for item display
EditTemplateDataTemplateTemplate for editing mode
ExpanderTemplateDataTemplateTemplate for expander icon

Common Use Cases

File Explorer

Display folder and file hierarchies with icons, allowing users to navigate, select, and manage files with drag-and-drop.

Organizational Chart

Show company hierarchy with employee nodes, supporting selection and expansion to view team structures.

Category Management

Display product categories with checkboxes for multi-selection, enabling bulk operations on category trees.

Project Structure

Show project files and folders with load-on-demand for large projects, supporting inline editing of file names.

Settings/Preferences Tree

Display nested configuration options with checkboxes for enabling/disabling features hierarchically.

Menu/Navigation Tree

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.25%
按下载量换算128

Claude

30.52%
按下载量换算111

Cursor

19.44%
按下载量换算71

Gemini CLI

9.26%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills