[]
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.
public static string RegisterTheme(Stream stream, C1ThemeFormat format)
Type | Name | Description |
---|---|---|
Stream | stream | A stream containing the theme to load/register. |
C1ThemeFormat | format | The theme persitence format to use. |
Type | Description |
---|---|
string | A name of registered theme. |
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.
public static string RegisterTheme(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | A stream containing the theme to load/register. |
Type | Description |
---|---|
string | A name of registered theme. |
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.
public static string RegisterTheme(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | The file containing the theme to load/register. |
Type | Description |
---|---|
string | A name of registered theme. |