Back to Devexpress

IThemeChangeService.SetTheme(ITheme) Method

blazor-devexpress-dot-blazor-dot-ithemechangeservice-dot-settheme-x28-devexpress-dot-blazor-dot-itheme-x29.md

latest1.2 KB
Original Source

IThemeChangeService.SetTheme(ITheme) Method

Applies a theme to an application.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.Resources.v25.2.dll

NuGet Package : DevExpress.Blazor.Resources

Declaration

csharp
Task<bool> SetTheme(
    ITheme theme
)

Parameters

NameTypeDescription
themeITheme

A DevExpress Blazor theme.

|

Returns

TypeDescription
Task<Boolean>

An asynchronous operation that applies a theme. The operation returns true if the operation is successful; otherwise, false.

|

Remarks

Refer to the IThemeChangeService interface description for additional information and an example.

See Also

IThemeChangeService Interface

IThemeChangeService Members

DevExpress.Blazor Namespace