Registers and manages the current theme. Requires ThemeService to be registered in the DI container.
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.SetParametersAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenTheme : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderRegisters and manages the current theme. Requires ThemeService to be registered in the DI container.
public RadzenTheme()When set to true the icon font will be preloadd.
public bool PreloadIconFont { get; set; }
| Type | Description |
|---|---|
| bool | When set to true the icon font will be preloadd. |
Gets or sets the theme.
public string Theme { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the theme. |
Enables WCAG contrast requirements. If set to true additional CSS file will be loaded.
public bool Wcag { get; set; }
| Type | Description |
|---|---|
| bool | Enables WCAG contrast requirements. If set to true additional CSS file will be loaded. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |