Skybound Rebar

RebarTheme.DefaultTheme Property

Gets the instance of RebarTheme which renders using the theme assigned by SetDefault.

[Visual Basic]
Public Shared ReadOnly Property DefaultTheme As RebarTheme
[C#]
public static RebarTheme DefaultTheme {get;}

Remarks

When you assign the DefaultTheme to a Rebar control, it is drawn by the theme assigned using SetDefault. The object returned by DefaultTheme is not a theme itself; rather, it delegates all method calls to the theme assigned using SetDefault.

To assign the default theme to a Rebar control at design-time, select (Default) from the drop-down list displayed for the Rebar.Theme property.

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