Class Shadow

    Definition

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

    Represents a shadow with color and blur radius for a View.

    public class Shadow : ShadowBase, ICloneable
    Inheritance
    object
    ShadowBase
    Shadow
    Derived
    InnerShadow
    Implements
    ICloneable

    Constructors

    View Source

    Shadow()

    Create a Shadow with default values.

    Declaration
    public Shadow()
    View Source

    Shadow(float, Color, Vector2, Vector2)

    Create a Shadow with custom values.

    Declaration
    public Shadow(float blurRadius, Color color, Vector2 offset = null, Vector2 extents = null)
    Parameters
    Type Name Description
    float blurRadius

    The blur radius value for the shadow. Bigger value, much blurry.

    Color color

    The color for the shadow.

    Vector2 offset

    Optional. The position offset value (x, y) from the top left corner. See Offset.

    Vector2 extents

    Optional. The shadow will extend its size by specified amount of length. See Extents.

    View Source

    Shadow(float, ColorVisualCutoutPolicyType, Color, Vector2, Vector2)

    Create a Shadow with custom values.

    Declaration
    public Shadow(float blurRadius, ColorVisualCutoutPolicyType cutoutPolicy, Color color, Vector2 offset = null, Vector2 extents = null)
    Parameters
    Type Name Description
    float blurRadius

    The blur radius value for the shadow. Bigger value, much blurry.

    ColorVisualCutoutPolicyType cutoutPolicy

    The policy of the shadow cutout.

    Color color

    The color for the shadow.

    Vector2 offset

    Optional. The position offset value (x, y) from the top left corner. See Offset.

    Vector2 extents

    Optional. The shadow will extend its size by specified amount of length. See Extents.

    View Source

    Shadow(Shadow)

    Copy constructor.

    Declaration
    public Shadow(Shadow other)
    Parameters
    Type Name Description
    Shadow other

    Properties

    View Source

    BlurRadius

    The blur radius value for the shadow. Bigger value, much blurry.

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

    Negative value is ignored. (no blur)

    View Source

    Color

    The color for the shadow.

    Declaration
    public Color Color { get; }
    Property Value
    Type Description
    Color
    View Source

    CutoutPolicy

    The Cutout policy for this shadow.

    Declaration
    public ColorVisualCutoutPolicyType CutoutPolicy { get; }
    Property Value
    Type Description
    ColorVisualCutoutPolicyType
    Remarks

    ColorVisualCutoutPolicyType.None = Fully render the shadow color (Default)
    ColorVisualCutoutPolicyType.CutoutView = Do not render inside bounding box of view
    ColorVisualCutoutPolicyType.CutoutViewWithCornerRadius = Do not render inside view, consider corner radius value
    We don't support this property for xaml yet.

    Methods

    View Source

    Clone()

    Declaration
    public object Clone()
    Returns
    Type Description
    object
    View Source

    Equals(object)

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool
    Overrides
    ShadowBase.Equals(object)
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ShadowBase.GetHashCode()
    View Source

    GetPropertyMap()

    Extract a property map.

    Declaration
    protected override PropertyMap GetPropertyMap()
    Returns
    Type Description
    PropertyMap
    Overrides
    ShadowBase.GetPropertyMap()

    Implements

    ICloneable

    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