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
    object
    StyleManager

    Properties

    View Source

    Instance

    StyleManager static instance.

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

    Theme

    Style theme.

    Declaration
    public string Theme { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    GetComponentStyle(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.

    View Source

    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 .

    View Source

    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

    View Source

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

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX