Skip to main content
All docs
V26.1
  • IThemeChangeService.SetTheme(ITheme) Method

    Applies a theme to an application.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.Resources.v26.1.dll

    NuGet Package: DevExpress.Blazor.Resources

    Declaration

    Task<bool> SetTheme(
        ITheme theme
    )

    Parameters

    Name Type Description
    theme ITheme

    A DevExpress Blazor theme.

    Returns

    Type Description
    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.

    The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetTheme(ITheme) method.

    Note

    The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

    See Also