Class VisualFactory

    Definition

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

    The VisualFactory is a singleton object that provides and shares visuals between views.

    public class VisualFactory : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    VisualFactory
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Properties

    View Source

    DefaultCreationOptions

    Default creation options for the visual factory.

    Declaration
    public VisualFactoryCreationOptions DefaultCreationOptions { get; set; }
    Property Value
    Type Description
    VisualFactoryCreationOptions
    Remarks

    All Visuals will got efforts when we call CreateVisual(PropertyMap). Default value is None.

    View Source

    Instance

    Retrieves the VisualFactory singleton.

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

    Methods

    View Source

    AddPrecompileShader(PropertyMap)

    Adds a list of pre-compiled shaders to the visual factory.

    Declaration
    public bool AddPrecompileShader(PropertyMap option)
    Parameters
    Type Name Description
    PropertyMap option

    The map contains the shader option for precompiling.

    Returns
    Type Description
    bool
    View Source

    CreateVisual(PropertyMap)

    Request the visual.

    Declaration
    public VisualBase CreateVisual(PropertyMap propertyMap)
    Parameters
    Type Name Description
    PropertyMap propertyMap

    The map contains the properties required by the visual. The content of the map determines the type of visual that will be returned.

    Returns
    Type Description
    VisualBase

    The handle to the created visual.

    View Source

    Dispose(bool)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    BaseHandle.Dispose(bool)
    View Source

    Get()

    Do not use this, that will be deprecated. Use VisualFactory.Instance instead.

    Declaration
    public static VisualFactory Get()
    Returns
    Type Description
    VisualFactory
    View Source

    UsePreCompiledShader()

    Compile the visual shader in advance. Afterwards, when a visual using a new shader is requested, the pre-compiled shader is used.

    Declaration
    public void UsePreCompiledShader()
    Remarks

    It is recommended that this method be called at the top of the application code.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    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