API ReferenceSandbox.UI
PanelRenderTreeBuilderclass
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.
object→
RenderTreeBuilder→PanelRenderTreeBuilderMethods19
Showing 19 methods
public virtual void AddAttribute(int sequence, System.Action`1<T> value)
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| value | Action<T> | — |
Returns:
void—public void AddAttributeObject(int sequence, string attrName, object value)
Handles "style" and "class" attributes..
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| attrName | string | — |
| value | object | — |
Returns:
void—public void AddAttributeString(int sequence, string attrName, string value)
Handles "style" and "class" attributes..
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| attrName | string | — |
| value | string | — |
Returns:
void—public void AddAttributeWithSetter(int sequence, object value, System.Action`1<T> setter)
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| value | object | — |
| setter | Action<T> | — |
Returns:
void—public virtual void AddBind(int sequence, string propertyName, System.Func`1<T> get, System.Action`1<T> set)
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| propertyName | string | — |
| get | Func<T> | — |
| set | Action<T> | — |
Returns:
void—public virtual void AddContent(int sequence, T content)
Handles text content within an element
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| content | T | — |
Returns:
void—public virtual void AddLocation(string filename, int line, int column)
Add the current source location. Used to record in which file the element was created.
| Parameter | Type | Description |
|---|---|---|
| filename | string | — |
| line | int | — |
| column | int | — |
Returns:
void—public virtual void AddMarkupContent(int sequence, string markupContent)
Add markup to the current element
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| markupContent | string | — |
Returns:
void—public virtual void AddReferenceCapture(int sequence, T current, System.Action`1<T> value)
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| current | T | — |
| value | Action<T> | — |
Returns:
void—public virtual void AddStyleDefinitions(int sequence, string styles)
Styles from a style block
| Parameter | Type | Description |
|---|---|---|
| sequence | int | — |
| styles | string | — |
Returns:
void—public virtual void CloseElement()
Finish working on this element
Returns:
void—public virtual void SetRenderFragment(System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment> setter, Microsoft.AspNetCore.Components.RenderFragment builder)
| Parameter | Type | Description |
|---|---|---|
| setter | Action<T,RenderFragment> | — |
| builder | RenderFragment | — |
Returns:
void—public virtual void SetRenderFragmentWithContext(System.Func`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> getter, System.Action`2<T,Microsoft.AspNetCore.Components.RenderFragment`1<U>> setter, Microsoft.AspNetCore.Components.RenderFragment`1<U> builder)
| Parameter | Type | Description |
|---|---|---|
| getter | Func<T,RenderFragment<U>> | — |
| setter | Action<T,RenderFragment<U>> | — |
| builder | RenderFragment<U> | — |
Returns:
void—No results match this filter.