Class Popup
Definition
- 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
- Implements
-
System.IDisposable
Constructors
View SourcePopup()
Constructor
Declaration
public Popup()
Popup(PopupStyle)
Constructor with style
Declaration
public Popup(PopupStyle style)
Parameters
Type | Name | Description |
---|---|---|
PopupStyle | style | style |
Fields
View SourceContentContainer
ContentContainer
Declaration
public View ContentContainer
Field Value
Type | Description |
---|---|
View |
CustomAnimation
CustomAnimation
Declaration
public IPopupAnimation CustomAnimation
Field Value
Type | Description |
---|---|
IPopupAnimation |
Methods
View SourceAppendButton(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 |
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 |
CreateViewStyle()
Get Popup style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle | The default popup style. |
Overrides
View SourceDismiss(bool)
Dismiss Popup.
Declaration
public void Dismiss(bool animated = true)
Parameters
Type | Name | Description |
---|---|---|
bool | animated | True when using Dismissing event |
Dispose(DisposeTypes)
Dispose.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type |
Overrides
View SourceGetButton(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 |
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 |
GetTitle()
Get Title.
Declaration
public TextLabel GetTitle()
Returns
Type | Description |
---|---|
TextLabel | Title(TextLabel) of Popup |
OnUpdate()
OnUpdate
Declaration
protected override void OnUpdate()
Overrides
View SourcePost(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 |
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 SourceAfterDissmising
Event after popup is dismissed. Customized action such as animation can be added.
Declaration
public event EventHandler AfterDissmising
Event Type
Type | Description |
---|---|
EventHandler |
AfterPosting
Event after popup is posted. Customized action such as animation can be added.
Declaration
public event EventHandler AfterPosting
Event Type
Type | Description |
---|---|
EventHandler |
BeforeDissmising
Event before popup is dismissed. Customized action such as animation can be added.
Declaration
public event EventHandler BeforeDissmising
Event Type
Type | Description |
---|---|
EventHandler |
BeforePosting
Event before popup is posted. Customized action such as animation can be added.
Declaration
public event EventHandler BeforePosting
Event Type
Type | Description |
---|---|
EventHandler |
OutsideClicked
Event when outside of components(Button, Content, Title) is clicked.
Declaration
public event EventHandler OutsideClicked
Event Type
Type | Description |
---|---|
EventHandler |