Show / Hide Table of Contents

    Class Hoversel

    Definition

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

    The hoversel is a button that pops up a list of items.

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

    Constructors

    View Source

    Hoversel(EvasObject)

    Creates and initializes a new instance of the Hoversel class.

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

    The parent is a given container, which will be attached by Hoversel as a child. It's EvasObject type.

    API Level: preview

    Properties

    View Source

    AutoUpdate

    Gets or sets the status of whether to update the icon and text of hoversel same to those of the selected item automatically.

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

    HoverParent

    Gets or sets the hover parent.

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

    IsExpanded

    Gets the flag of whether the hoversel is expanded.

    Declaration
    public bool IsExpanded { get; }
    Property Value
    Type Description
    Boolean
    API Level: preview
    View Source

    IsHorizontal

    Gets or sets the status to control whether the hoversel should expand horizontally.

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

    Methods

    View Source

    AddItem(String)

    Adds an item to the hoversel button. This adds an item to the hoversel to show when it is clicked.

    Declaration
    public HoverselItem AddItem(string label)
    Parameters
    Type Name Description
    String label

    Item's label.

    Returns
    Type Description
    HoverselItem

    A handle to the added item.

    API Level: preview
    View Source

    Clear()

    This will remove all the children items from the hoversel.

    Declaration
    public void Clear()
    API Level: preview
    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

    HoverBegin()

    This triggers the hoversel popup from the code, the same as if the user had clicked the button.

    Declaration
    public void HoverBegin()
    API Level: preview
    View Source

    HoverEnd()

    This dismisses the hoversel popup as if the user had clicked outside the hover.

    Declaration
    public void HoverEnd()
    API Level: preview

    Events

    View Source

    Clicked

    Clicked will be triggered when the hoversel is clicked.

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

    Dismissed

    Dismissed will be triggered when the hoversel is dismissed.

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

    Expanded

    Expanded will be triggered when the hoversel is activated by clicking the hoversel, or by a function.

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

    ItemSelected

    ItemSelected will be triggered when the hoversel's item is selected.

    Declaration
    public event EventHandler<HoverselItemEventArgs> ItemSelected
    Event Type
    Type Description
    EventHandler<HoverselItemEventArgs>
    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