Class RadzenTheme
Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenTheme : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
RadzenTheme()
Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.
Declaration
public RadzenTheme()
Properties
PreloadIconFont
When set to true the icon font will be preloadd.
Declaration
[Parameter]
public bool PreloadIconFont { get; set; }
Property Value
Type | Description |
---|---|
bool |
Theme
Gets or sets the theme.
Declaration
[Parameter]
public string? Theme { get; set; }
Property Value
Type | Description |
---|---|
string |
Wcag
Enables WCAG contrast requirements. If set to true additional CSS file will be loaded.
Declaration
[Parameter]
public bool Wcag { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
BuildRenderTree(RenderTreeBuilder)
Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
Dispose()
Releases all resources used by the component.
Declaration
public void Dispose()
OnInitialized()
Registers and manages the current theme. Requires Radzen.Blazor.RadzenTheme.ThemeService to be registered in the DI container.
Declaration
protected override void OnInitialized()