Class StyleManager

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll

StyleManager is a class to manager all style.

C#
Copy
public sealed class StyleManager : object
Inheritance
StyleManager

Properties

View Source

Instance

StyleManager static instance.

Declaration
C#
Copy
public static StyleManager Instance { get; }
Property Value
Type Description
StyleManager
View Source

Theme

Style theme.

Declaration
C#
Copy
public string Theme { get; set; }
Property Value
Type Description
String

Methods

View Source

GetComponentStyle(Type)

Get components style in the current theme.

Declaration
C#
Copy
public ViewStyle GetComponentStyle(Type component)
Parameters
Type Name Description
Type component

The type of component

Returns
Type Description
ViewStyle

The style of the component.

View Source

GetViewStyle(String)

Get style.

Declaration
C#
Copy
public ViewStyle GetViewStyle(string style)
Parameters
Type Name Description
String style

Style name.

Returns
Type Description
ViewStyle

The style corresponding to style name .

View Source

RegisterComponentStyle(String, Type, Type)

Register a style for a component to theme.

Declaration
C#
Copy
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

View Source

RegisterStyle(String, String, Type, Boolean)

Register style in StyleManager.

Declaration
C#
Copy
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.

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#
Copy
public event EventHandler<StyleManager.ThemeChangeEventArgs> ThemeChangedEvent
Event Type
Type Description
EventHandler<StyleManager.ThemeChangeEventArgs>

Extension Methods