Class StyleManager
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
StyleManager is a class to manager all style.
public sealed class StyleManager
- Inheritance
-
objectStyleManager
Properties
View SourceInstance
StyleManager static instance.
Declaration
public static StyleManager Instance { get; }
Property Value
Type | Description |
---|---|
StyleManager |
Theme
Style theme.
Declaration
public string Theme { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceGetComponentStyle(Type)
Get components style in the current theme.
Declaration
public ViewStyle GetComponentStyle(Type component)
Parameters
Type | Name | Description |
---|---|---|
Type | component | The type of component |
Returns
Type | Description |
---|---|
ViewStyle | The style of the component. |
GetViewStyle(string)
Get style.
Declaration
public ViewStyle GetViewStyle(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Style name. |
Returns
Type | Description |
---|---|
ViewStyle | The style corresponding to style name . |
RegisterComponentStyle(string, Type, Type)
Register a style for a component to theme.
Declaration
public void RegisterComponentStyle(string targetTheme, Type component, Type style)
Parameters
Type | Name | Description |
---|---|---|
string | targetTheme | The target theme name to register a component style. It theme should be a known one. |
Type | component | The type of ComponentStyle |
Type | style | The derived class of StyleBase |
RegisterStyle(string, string, Type, bool)
Register style in StyleManager.
Declaration
public void RegisterStyle(string style, string theme, Type styleType, bool bDefault = false)
Parameters
Type | Name | Description |
---|---|---|
string | style | Style name. |
string | theme | Theme id. |
Type | styleType | Style type. |
bool | bDefault | Flag to decide if it is default style. |
Events
View SourceThemeChangedEvent
An event for the theme changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
public event EventHandler<StyleManager.ThemeChangeEventArgs> ThemeChangedEvent
Event Type
Type | Description |
---|---|
EventHandler<><ThemeChangeEventArgs> |