Tree View
Tree view component for Universal Apps.
New-UDTreeView
allows you to create a tree of items and, optionally, dynamically expand the list when clicked.
Basic Tree View
Create a basic tree view by using the New-UDTreeNode
cmdlet.
![](https://docs.powershelluniversal.com/~gitbook/image?url=https%3A%2F%2F1373299915-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F8F6PrkNTG8Y34hADzKOL%252Fuploads%252Fgit-blob-62761b6fb7a44ccbacd68da411958d8e7308466b%252Fimage%2520%28163%29%2520%281%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d0a4b0ae&sv=1)
Dynamic Tree View
Dynamic tree views allow you to run PowerShell whenever a node is clicked. You can then return a list of nodes that should be rendered underneath the clicked node. You can also take other actions such as opening a modal or showing a toast.
![](https://docs.powershelluniversal.com/~gitbook/image?url=https%3A%2F%2F1373299915-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F8F6PrkNTG8Y34hADzKOL%252Fuploads%252Fgit-blob-d45e58c784e105d8e85bac8b41e18769a23a037e%252Fimage%2520%28320%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=e6ad435b&sv=1)
API
Last updated