# Sandbox.UI.PanelRenderTreeBuilder

This is a tree renderer for panels. If we ever use razor on other ui we'll want to make a copy of
this class and do the specific things to that.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`

## Methods

- [`AddAttribute`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddAttribute)
- [`AddAttributeAction`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddAttributeAction): Handles @onclick=@( () => DoSomething( "boobies" ) )
- [`AddAttributeObject`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddAttributeObject): Handles "style" and "class" attributes..
- [`AddAttributeString`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddAttributeString): Handles "style" and "class" attributes..
- [`AddAttributeWithSetter`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddAttributeWithSetter)
- [`AddBind`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddBind)
- [`AddContent`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddContent): Handles text content within an element
- [`AddLocation`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddLocation): Add the current source location. Used to record in which file the element was created.
- [`AddMarkupContent`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddMarkupContent): Add markup to the current element
- [`AddReferenceCapture`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddReferenceCapture)
- [`AddStyleDefinitions`](/api/Sandbox.UI.PanelRenderTreeBuilder/AddStyleDefinitions): Styles from a style block
- [`CloseElement`](/api/Sandbox.UI.PanelRenderTreeBuilder/CloseElement): Finish working on this element
- [`OpenElement`](/api/Sandbox.UI.PanelRenderTreeBuilder/OpenElement)
- [`SetRenderFragment`](/api/Sandbox.UI.PanelRenderTreeBuilder/SetRenderFragment)
- [`SetRenderFragmentWithContext`](/api/Sandbox.UI.PanelRenderTreeBuilder/SetRenderFragmentWithContext)
