[]
        
(Showing Draft Content)

C1.Win.Themes.C1ThemeController.RegisterTheme

RegisterTheme Method

RegisterTheme(Stream, C1ThemeFormat)

Loads a theme from a stream, and registeres it for use by theme controllers in the application.

After this method completes, the theme can be set via ApplicationTheme and Theme properties.

his method throws an exception if a theme with same name has already been registered.

Declaration
public static string RegisterTheme(Stream stream, C1ThemeFormat format)
Parameters
Type Name Description
Stream stream

A stream containing the theme to load/register.

C1ThemeFormat format

The theme persitence format to use.

Returns
Type Description
string

A name of registered theme.

RegisterTheme(Stream)

Loads a theme from a stream, and registeres it for use by theme controllers in the application.

After this method completes, the theme can be set via ApplicationTheme and Theme properties.

his method throws an exception if a theme with same name has already been registered.

Declaration
public static string RegisterTheme(Stream stream)
Parameters
Type Name Description
Stream stream

A stream containing the theme to load/register.

Returns
Type Description
string

A name of registered theme.

RegisterTheme(string)

Loads a theme from a file, and registeres it for use by theme controllers in the application.

After this method completes, the theme can be set via ApplicationTheme and Theme properties.

his method throws an exception if a theme with same name has already been registered.

Declaration
public static string RegisterTheme(string fileName)
Parameters
Type Name Description
string fileName

The file containing the theme to load/register.

Returns
Type Description
string

A name of registered theme.