Skip to main content
A newer version of this page is available. .

DxTreeViewNode.CssClass Property

Specifies the name of the CSS class applied to the TreeView node.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
String

The CSS class name.

Remarks

To define the appearance of the TreeView node, assign a CSS class name to the CssClass property.

<style>
    .my-style {
        color: darkorange;
    }
</style>

<div style="width: 250px">
    <DxTreeView>
        <Nodes>
            <DxTreeViewNode Name="Overview" 
                            Text="Overview" 
                            NavigateUrl="https://demos.devexpress.com/blazor/"
                            CssClass="my-style" />
            @* ... *@
        </Nodes>
    </DxTreeView>
</div>

TreeView Node Css Class Applied

See Also