Class DpTypeConverter

    Definition

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

    Default DpTypeConverter class to convert dp types.

    public sealed class DpTypeConverter : GraphicsTypeConverter
    Inheritance
    object
    GraphicsTypeConverter
    DpTypeConverter

    Properties

    View Source

    Instance

    An unique Singleton Instance of DpTypeConverter.

    Declaration
    public static DpTypeConverter Instance { get; }
    Property Value
    Type Description
    DpTypeConverter

    Singleton instance of DpTypeConverter

    Methods

    View Source

    ConvertFromPixel(float)

    Converts px to dp type.

    Declaration
    public override float ConvertFromPixel(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    float

    An converted value from pixel

    Overrides
    GraphicsTypeConverter.ConvertFromPixel(float)
    View Source

    ConvertScriptToPixel(string)

    Converts script to pixel.

    Declaration
    public override float ConvertScriptToPixel(string scriptValue)
    Parameters
    Type Name Description
    string scriptValue
    Returns
    Type Description
    float

    Pixel value that is converted from input string

    Overrides
    GraphicsTypeConverter.ConvertScriptToPixel(string)
    View Source

    ConvertToPixel(float)

    Converts dp type to pixel.

    Declaration
    public override float ConvertToPixel(float value)
    Parameters
    Type Name Description
    float value
    Returns
    Type Description
    float

    Pixel value that is converted by the the display matric

    Overrides
    GraphicsTypeConverter.ConvertToPixel(float)

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    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