Class Popup

    Definition

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

    Popup is an UI component to give a notification or message, which interaction with user simply. It is attached to Window directly so that it is shown on top of all UI components. Title(text) and Content(container) are initially formed and user can control them by setting properties or styles.

    public class Popup : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    Popup
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    Popup()

    Constructor

    Declaration
    public Popup()
    View Source

    Popup(PopupStyle)

    Constructor with style

    Declaration
    public Popup(PopupStyle style)
    Parameters
    Type Name Description
    PopupStyle style

    style

    Fields

    View Source

    ContentContainer

    ContentContainer

    Declaration
    public View ContentContainer
    Field Value
    Type Description
    View
    View Source

    CustomAnimation

    CustomAnimation

    Declaration
    public IPopupAnimation CustomAnimation
    Field Value
    Type Description
    IPopupAnimation

    Methods

    View Source

    AppendButton(string, Button, bool, ButtonPosition)

    Append Buttons on popup.

    Declaration
    public void AppendButton(string index, Button button, bool automaticPositioning = true, Popup.ButtonPosition position = ButtonPosition.Automatic)
    Parameters
    Type Name Description
    string index

    Key to get a specific button by using GetButton

    Button button

    Button to be added

    bool automaticPositioning

    If set true, added button will be placed automatically

    Popup.ButtonPosition position

    Specific postion set by user

    View Source

    AppendContent(string, View)

    Append indexed content which is created by user.

    Declaration
    public void AppendContent(string index, View content)
    Parameters
    Type Name Description
    string index

    Index(key) of the content added

    View content

    Content to be added in Popup's content

    View Source

    CreateViewStyle()

    Get Popup style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle

    The default popup style.

    Overrides
    Control.CreateViewStyle()
    View Source

    Dismiss(bool)

    Dismiss Popup.

    Declaration
    public void Dismiss(bool animated = true)
    Parameters
    Type Name Description
    bool animated

    True when using Dismissing event

    View Source

    Dispose(DisposeTypes)

    Dispose.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    Dispose type

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    GetButton(string)

    Get Button by index.

    Declaration
    public Button GetButton(string index)
    Parameters
    Type Name Description
    string index

    Index(key) to be found

    Returns
    Type Description
    Button

    Button of Popup

    View Source

    GetContent(string)

    Get indexed content.

    Declaration
    public View GetContent(string index)
    Parameters
    Type Name Description
    string index

    Index(key) to be found

    Returns
    Type Description
    View

    Content in the Popup

    View Source

    GetTitle()

    Get Title.

    Declaration
    public TextLabel GetTitle()
    Returns
    Type Description
    TextLabel

    Title(TextLabel) of Popup

    View Source

    OnUpdate()

    OnUpdate

    Declaration
    protected override void OnUpdate()
    Overrides
    Control.OnUpdate()
    View Source

    Post(Window, bool)

    Post on top of Window.

    Declaration
    public void Post(Window targetWindow, bool animated = true)
    Parameters
    Type Name Description
    Window targetWindow

    Window where Popup is placed

    bool animated

    Posting animation

    View Source

    SetTimeout(uint)

    Set timeout milli-second

    Declaration
    public void SetTimeout(uint milliSecond)
    Parameters
    Type Name Description
    uint milliSecond

    Automatically dissmissed after milli-second

    Events

    View Source

    AfterDissmising

    Event after popup is dismissed. Customized action such as animation can be added.

    Declaration
    public event EventHandler AfterDissmising
    Event Type
    Type Description
    EventHandler
    View Source

    AfterPosting

    Event after popup is posted. Customized action such as animation can be added.

    Declaration
    public event EventHandler AfterPosting
    Event Type
    Type Description
    EventHandler
    View Source

    BeforeDissmising

    Event before popup is dismissed. Customized action such as animation can be added.

    Declaration
    public event EventHandler BeforeDissmising
    Event Type
    Type Description
    EventHandler
    View Source

    BeforePosting

    Event before popup is posted. Customized action such as animation can be added.

    Declaration
    public event EventHandler BeforePosting
    Event Type
    Type Description
    EventHandler
    View Source

    OutsideClicked

    Event when outside of components(Button, Content, Title) is clicked.

    Declaration
    public event EventHandler OutsideClicked
    Event Type
    Type Description
    EventHandler

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    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