Skybound Rebar

RebarTheme.SetDefault Method 

Sets the RebarTheme used to render ContextMenu and Rebar controls whose theme is set to DefaultTheme.

[Visual Basic]
Public Shared Sub SetDefault( _
   ByVal theme As RebarTheme _
)
[C#]
public static void SetDefault(
   RebarTheme theme
);

Parameters

theme
The RebarTheme used as the default theme.

Remarks

This method sets the theme to which the DefaultTheme delegates all method calls.

If you use the default theme, you should call SetDefault in your application startup code in order to specify a theme to use as the default. For example, to use the Office 2003 AutoSelect preset as the default:

RebarTheme.SetDefault(OfficeTheme.AutoSelect);

See Also

RebarTheme Class | Skybound.Rebar.Rendering Namespace