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

NavBarStyles.Link Property

Gets the style settings, defining the common appearance of navbar links.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web

Declaration

Property Value

Type Description
LinkStyle

A LinkStyle object that contains style settings.

Remarks

The Link property provides access to the style settings that define the appearance of all links within a navbar. Using the settings available via the Link property, you can specify the style for the normal, hovered and visited states of links.

Note

This property is not in effect when used within the NavBar extension for the ASP.NET MVC. As a workaround, you can define the appearance of links using CSS code.

The code sample below illustrates how to underline links when they are hovered.

<style type="text/css">
        #myNavBar a:hover
        {
            text-decoration: underline;
        }
</style>

@Html.DevExpress().NavBar(settings =>
{
    settings.Name = "myNavBar";
    ...
}).GetHtml()
See Also