| title |
TreeContent Class (Command Palette Extensions Toolkit) |
| description |
The TreeContent class provides a way to manage tree-like structures in the Command Palette Extensions Toolkit. |
| ms.date |
2/26/2025 |
| ms.topic |
reference |
| no-loc |
PowerToys |
Windows |
Insider |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Inherits BaseObservable
Implements ITreeContent
The TreeContent class provides a way to manage tree-like structures in the Command Palette Extensions Toolkit. It allows for the organization of content in a hierarchical manner, making it easier to navigate and manage complex data structures.
| Property |
Type |
Description |
| Children |
IContent[] |
The child content items of the tree node. |
| RootContent |
IContent |
The root content item of the tree. |
| Event |
Description |
| Windows.Foundation.TypedEventHandler<object, IItemsChangedEventArgs> ItemsChanged |
Occurs when the items in the tree content change. This event is used to notify subscribers about changes in the tree structure, such as additions or removals of child items. |
| Method |
Description |
| GetChildren() |
Retrieves the child content items of the tree node. This method is used to access the children of a specific node in the tree structure. |