RadzenTheme Class

Registers and manages the current theme. Requires ThemeService to be registered in the DI container.

Inheritance

Object

ComponentBase

RadzenTheme

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

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

Syntax

public class RadzenTheme : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenThemelink

Registers and manages the current theme. Requires ThemeService to be registered in the DI container.

Declaration
public RadzenTheme()

Properties

PreloadIconFontlink

When set to true the icon font will be preloadd.

Declaration
public bool PreloadIconFont { get; set; }
Property Value
Type Description
boolWhen set to true the icon font will be preloadd.

Themelink

Gets or sets the theme.

Declaration
public string Theme { get; set; }
Property Value
Type Description
stringGets or sets the theme.

Wcaglink

Enables WCAG contrast requirements. If set to true additional CSS file will be loaded.

Declaration
public bool Wcag { get; set; }
Property Value
Type Description
boolEnables WCAG contrast requirements. If set to true additional CSS file will be loaded.

Methods

BuildRenderTreelink

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

Disposelink

Releases all resources used by the component.

Declaration
public void Dispose()

OnInitializedlink

Declaration
protected override void OnInitialized()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙