Skip to main content

NavBarControl.ResetStyles() Method

Restores the control’s styles to the default state.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

public virtual void ResetStyles()

Remarks

This method is obsolete and is no longer supported.

Example

The following sample code applies all available paint style to the NavBarControl sequentially. A message box is displayed after each style is applied.

The NavBarControl.AvailableNavBarViews property is used to obtain the list of Views available for the control. Each View is applied to the control via the NavBarControl.View property.

using DevExpress.XtraNavBar.ViewInfo;
//...
for (int i = 0; i < navBarControl1.AvailableNavBarViews.Count; i++) {
   BaseViewInfoRegistrator vir = 
     navBarControl1.AvailableNavBarViews[i] as BaseViewInfoRegistrator;
   navBarControl1.View = vir;
   MessageBox.Show("The " + vir.ViewName + " painting style.", "Information");
}
See Also