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