Class NPatchVisual

    Definition

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

    The visual which can display an n-patch image resource. It will be used when we want to display n-patch image, border only n-patch, or make regular image stretched.

    public class NPatchVisual : ImageVisual, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    VisualBase
    ImageVisual
    NPatchVisual
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    Remarks

    Following ImageVisual properties are not supported in NPatchVisual.

    • CornerRadius
    • BorderlineWidth
    • AlphaMaskUrl

    Constructors

    View Source

    NPatchVisual()

    Creates an visual object.

    Declaration
    public NPatchVisual()
    Remarks

    Following ImageVisual properties are not supported in NPatchVisual.

    • CornerRadius
    • BorderlineWidth
    • AlphaMaskUrl

    Properties

    View Source

    AuxiliaryImageAlpha

    An alpha value for mixing between the masked main NPatch image and the auxiliary image.

    Declaration
    public float AuxiliaryImageAlpha { get; set; }
    Property Value
    Type Description
    float
    Remarks

    Following ImageVisual properties are not supported in NPatchVisual.

    • CornerRadius
    • BorderlineWidth
    • AlphaMaskUrl
    View Source

    AuxiliaryImageUrl

    Overlays the auxiliary image on top of an NPatch image. The resulting visual image will be at least as large as the smallest possible n-patch or the auxiliary image, whichever is larger.

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

    Following ImageVisual properties are not supported in NPatchVisual.

    • CornerRadius
    • BorderlineWidth
    • AlphaMaskUrl
    View Source

    Border

    The border of the regular image is in the order: left, right, bottom, top.

    Declaration
    public Rectangle Border { get; set; }
    Property Value
    Type Description
    Rectangle
    Remarks

    Note that it is not mean the value from 9 patch image.

    View Source

    BorderOnly

    Gets or sets whether to draw the borders only (If true).
    If not specified, the default is false.

    Declaration
    public bool BorderOnly { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    Following ImageVisual properties are not supported in NPatchVisual.

    • CornerRadius
    • BorderlineWidth
    • AlphaMaskUrl

    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