Skip to main content

Styling View Content Elements

If you need to modify the style settings of view content elements (such as groups and items), you can perform a centralized style customization by using the following two properties: NavBarViewBase.GroupVisualStyle and NavBarViewBase.ItemVisualStyle.

#Styling Groups

Using the NavBarViewBase.GroupVisualStyle property, a common group header style for all groups within the DXNavBar can be applied. For instance, you can create a style defining the common group appearance, and assign this style to the NavBarViewBase.GroupVisualStyle property of the current view.

NOTE

A common group style defined via the NavBarViewBase.GroupVisualStyle property can be overridden at the group level. An individual style can be assigned to each group by using the group's NavBarGroup.VisualStyle property.

#Styling Items

Using the NavBarViewBase.ItemVisualStyle property, a common style for all items within the DXNavBar can be applied. So, you can create a style defining the common item appearance and assign this style to the NavBarViewBase.ItemVisualStyle property of the current view.

NOTE

A common item style defined via the NavBarViewBase.ItemVisualStyle property can be overridden at the group level (via the NavBarGroup.ItemVisualStyle property) and at the item level (via the NavBarItem.VisualStyle property).