Show / Hide Table of Contents

    Class Panel

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The Panel is a container that can contain subobjects.

    public class Panel : Layout, IAccessibleObject
    Inheritance
    Object
    EvasObject
    AccessibleObject
    Widget
    Container
    Layout
    Panel
    Implements
    IAccessibleObject

    Constructors

    View Source

    Panel(EvasObject)

    Creates and initializes a new instance of the Panel class.

    Declaration
    public Panel(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    The EvasObject to which the new panel will be attached as a child.

    API Level: preview

    Properties

    View Source

    Direction

    Sets or gets the direction of a given Panel widget.

    Declaration
    public PanelDirection Direction { get; set; }
    Property Value
    Type Description
    PanelDirection
    API Level: preview
    View Source

    IsOpen

    Sets or gets the hidden status of a given Panel widget.

    Declaration
    public bool IsOpen { get; set; }
    Property Value
    Type Description
    Boolean
    API Level: preview

    Methods

    View Source

    CreateHandle(EvasObject)

    Creates a widget handle.

    Declaration
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    Parent EvasObject.

    Returns
    Type Description
    IntPtr

    Handle IntPtr.

    Overrides
    Layout.CreateHandle(EvasObject)
    API Level: preview
    View Source

    SetScrollable(Boolean)

    Enable or disable scrolling in the panel.

    Declaration
    public void SetScrollable(bool enable)
    Parameters
    Type Name Description
    Boolean enable

    Bool value can be false or true.

    API Level: preview
    View Source

    SetScrollableArea(Double)

    Sets the scroll size of the panel.

    Declaration
    public void SetScrollableArea(double ratio)
    Parameters
    Type Name Description
    Double ratio

    The size of the scroll area.

    API Level: preview
    View Source

    Toggle()

    Toggles the hidden state of the panel.

    Declaration
    public void Toggle()
    API Level: preview

    Events

    View Source

    Scrolled

    Scrolled will be triggered when the panel has been scrolled. This event is emitted only when the panel is scrollable

    Declaration
    public event EventHandler Scrolled
    Event Type
    Type Description
    EventHandler
    API Level: preview
    View Source

    Toggled

    Toggled will be triggered when the panel is toggled.

    Declaration
    public event EventHandler Toggled
    Event Type
    Type Description
    EventHandler
    API Level: preview

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.Deactivate(EvasObject)
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX