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 to this section

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

Declaration
public RadzenTheme()

Properties

CssPathLink to this section

Custom css path. If set, it overwrites the default path.

Declaration
public string CssPath { get; set; }
Property Value
Type Description
stringCustom css path. If set, it overwrites the default path.

PreloadIconFontLink to this section

When set to true the icon font will be preloaded.

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

ThemeLink to this section

Gets or sets the theme.

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

WcagLink to this section

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 to this section

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

DisposeLink to this section

Releases all resources used by the component.

Declaration
public void Dispose()

OnInitializedLink to this section

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