Skip to main content

NavBarItem.VisualStyle Property

Gets or sets a style object that defines the item's appearance. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v14.2.dll

#Declaration

public Style VisualStyle { get; set; }

#Property Value

Type Description
Style

A Style object containing item style settings.

#Remarks

Use the VisualStyle property to control the appearance of an individual item.

NOTE

A view's attached properties (such as the NavBarViewBase.DisplayMode, NavBarViewBase.LayoutSettings, NavBarViewBase.ImageSettings) can be applied to the required object (a view, group or item) only through a style. The VisualStyle property allows a style containing settings of these attached properties to be applied to an item object.

Using the VisualStyle property of an item, you can override a common appearance defined for all items at the view level (via the NavBarViewBase.ItemVisualStyle property) or at the group level (via the NavBarItem.VisualStyle property), if any.

See Also