[]
        
(Showing Draft Content)

C1.Win.Themes.C1ThemeController.RegisterThemes

RegisterThemes Method

RegisterThemes(Assembly)

Loads all themes from an assembly, and registeres them for use by theme controllers in the current application.

This method scans all resources in the specified assembly, and selects those with names ending in ".c1theme" (case insensitive). If a theme cannot be loaded (e.g. due to a duplicate name or other error), it is skipped (i.e. no exception is thrown).

Declaration
public static string[] RegisterThemes(Assembly assembly)
Parameters
Type Name Description
Assembly assembly

The assembly to load/register themes from.

Returns
Type Description
string[]

The array of names of all loaded/registered themes.