Class Panel

    Definition

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

    Panel is a control to show 2D UI on 3D Scene. 2D UI contents set on this Panel are rendered on a screen panel that is placed on 3D scene. Each Panel has a single plane with defined resolution. The plane is always placed at center to fit within the boundaries of the panel while maintaining the aspect ratio of the resolution.

    public class Panel : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    Panel
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    Examples
    View contentRoot = CreateUIContent();   // Create 2D UI Scene
    Panel panel = new Panel()
    {
        Size = new Size(width, height),
    };
    panel.PanelResolution = new Vector2(resolutionWidth, resolutionHeight));
    panel.Content = contentRoot;

    Constructors

    View Source

    Panel()

    Create an initialized Panel.

    Declaration
    public Panel()
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    Properties

    View Source

    BackFacePlaneColor

    Color of back face plane. Default color is white.

    Declaration
    public Color BackFacePlaneColor { get; set; }
    Property Value
    Type Description
    Color
    Remarks

    Because back face plane is always opaque, alpha channel is ignored.

    View Source

    Content

    Root View of 2D UI content. The content is rendered on the plane of the Panel by using off screen rendering.

    Declaration
    public View Content { get; set; }
    Property Value
    Type Description
    View
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    DoubleSided

    Whether the content is rendered as double sided or not. Default value is false.

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

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    PanelResolution

    Resolution of the Panel. The resolution is independent from the Panel size property. The resolution defines a plane that the 2D UI scene will be rendered. And the shape of the panel plane is defined by aspect ratio of the input resolution. The plane is cleared by white color.

    Declaration
    public Vector2 PanelResolution { get; set; }
    Property Value
    Type Description
    Vector2
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    ShadowCast

    Whether this Panel casts shadow or not by directional light. If it is true, this panel is drawn on Shadow Map. Default value is true.

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

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    ShadowReceive

    Whether this Panel receives shadow or not by directional light. If it is true, shadows are drawn on this panel. Default value is true.

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

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    Transparent

    Whether Transparent background is used or not. Default value is false

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

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    UsingBackFacePlane

    Whether to use back face plane or not. If this property is true, an opaque plane will be displayed when viewed from behind the Panel. Default value is true. Default back face plane color is white.

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

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    Methods

    View Source

    Dispose(DisposeTypes)

    To make transitionSet instance be disposed.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    View.Dispose(DisposeTypes)
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    View Source

    ReleaseSwigCPtr(HandleRef)

    Release swigCPtr.

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Remarks

    2D UI Content can be added on Panel, but the result that another 3D SceneView is added on Panel is not guaranteed.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<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