Table of Contents

Class RadzenTheme

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

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

public class RadzenTheme : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenTheme
Implements
Inherited Members

Constructors

RadzenTheme()

public RadzenTheme()

Properties

Theme

Gets or sets the theme.

[Parameter]
public string Theme { get; set; }

Property Value

string

Wcag

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

[Parameter]
public bool Wcag { get; set; }

Property Value

bool

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

Releases all resources used by the component.

public void Dispose()

OnInitialized()

protected override void OnInitialized()