Skip to main content

DxNavigationControlComponent<JSProxyType, TModel>.Visible Property

Specifies the navigation or layout component’s visibility.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public virtual bool Visible { get; set; }

Property Value

Type Default Description
Boolean true

true to display the component; otherwise, false.

Remarks

Set the Visible property to hide a navigation component. The following code snippet hides the DxTreeView component:

<DxButton Click="@ClickHandle">Change Visibility</DxButton>

<div style="width: 250px">
    <DxTreeView Visible="@IsVisible">
        <Nodes>
            @* ... *@
        </Nodes>
    </DxTreeView>
</div>

@code {
    bool IsVisible = true;
    void ClickHandle() {
        IsVisible = !IsVisible;
    }
}

TreeView Visibility

To disable the navigation component, set the Enabled property to false.

See Also