# Sandbox.UI.FolderTree

A virtualized tree of independently browsable file sources.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.UI.Panel](/api/Sandbox.UI.Panel)
- Modifiers: sealed

## Constructors

- [`FolderTree`](/api/Sandbox.UI.FolderTree/.ctor)

## Properties

- [`GetFolderIcon`](/api/Sandbox.UI.FolderTree/GetFolderIcon): Supplies a material icon and optional tint for each folder. The root path is empty.
- [`OnFolderSelected`](/api/Sandbox.UI.FolderTree/OnFolderSelected): Called when a folder is selected. SelectedSource identifies the root the path belongs to.
- [`Roots`](/api/Sandbox.UI.FolderTree/Roots): File sources shown at the top level, in display order.
- [`SelectedSource`](/api/Sandbox.UI.FolderTree/SelectedSource): Source containing the current selection.
- [`Source`](/api/Sandbox.UI.FolderTree/Source): Convenience for a tree with a single root. In a multi-root tree this returns the first root.

## Methods

- [`Refresh`](/api/Sandbox.UI.FolderTree/Refresh): Reads the visible branches and their icons again.
- [`SelectFolder`](/api/Sandbox.UI.FolderTree/SelectFolder): Reveals a folder in the selected root, or the first root when nothing is selected.
- [`SetRoots`](/api/Sandbox.UI.FolderTree/SetRoots): Replaces the top-level sources. Each root has its own paths, expansion and selection identity.
