Class StyleManager
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
StyleManager is a class to manager all style.
C#Copypublic sealed class StyleManager : object
- Inheritance
-
StyleManager
Properties
Declaration
C#Copypublic static StyleManager Instance { get; }
Property Value
Type | Description |
---|---|
StyleManager |
Declaration
C#Copypublic string Theme { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Declaration
C#Copypublic ViewStyle GetComponentStyle(Type component)
Parameters
Type | Name | Description |
---|---|---|
Type | component | The type of component |
Returns
Type | Description |
---|---|
ViewStyle | The style of the component. |
Declaration
C#Copypublic ViewStyle GetViewStyle(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Style name. |
Returns
Type | Description |
---|---|
ViewStyle | The style corresponding to style name . |
Declaration
C#Copypublic 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 |
Declaration
C#Copypublic 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. |
Boolean | bDefault | Flag to decide if it is default style. |
Events
View Source
ThemeChangedEvent
An event for the theme changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
C#Copypublic event EventHandler<StyleManager.ThemeChangeEventArgs> ThemeChangedEvent
Event Type
Type | Description |
---|---|
EventHandler<StyleManager.ThemeChangeEventArgs> |