Skip to main content

How to: Change the Navbar Control's View Type

The following example shows how to apply the Navigation Pane View type to a NavBarControl via the NavBarControl.PaintStyleKind property. Then, the default look and feel scheme is changed via the Default Look And Feel object. As a result, all controls, including the NavBarControl, will be painted using the “Money Twins” skin.

using DevExpress.LookAndFeel;
using DevExpress.XtraNavBar;

// Applies the Navigation Pane View type
navBarControl1.PaintStyleKind = NavBarViewKind.NavigationPane;

// Changes the default look and feel scheme to the Money Twins skin.
UserLookAndFeel.Default.Style = LookAndFeelStyle.Skin;
UserLookAndFeel.Default.SkinName = "Money Twins";