Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Popup is a widget that is an enhancement of notify.
In addition to content area, there are two optional sections, namely title area and action area.
public class Popup : Layout, IAccessibleObject
- Inheritance
-
- Implements
-
Constructors
View Source
Creates and initializes a new instance of the Popup class.
Declaration
public Popup(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
The EvasObject to which the new popup will be attached as a child.
|
API Level: preview
Properties
View Source
Sets or gets the AlignmentX in which the popup will appear in its parent.
Declaration
public override double AlignmentX { get; set; }
Property Value
Type |
Description |
System.Double |
|
Overrides
API Level: preview
View Source
Sets or gets the AlignmentY in which the popup will appear in its parent.
Declaration
public override double AlignmentY { get; set; }
Property Value
Type |
Description |
System.Double |
|
Overrides
API Level: preview
View Source
Sets or gets whether events should be passed to the event blocked area by a click outside.
Declaration
public bool AllowEvents { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: preview
View Source
Sets or gets the wrapping type of content text packed in the content area of Popup widget.
Declaration
public WrapType ContentTextWrapType { get; set; }
Property Value
API Level: preview
Declaration
public override int Opacity { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
API Level: preview
View Source
Sets or gets the position in which the popup will appear in its parent.
Declaration
public PopupOrientation Orientation { get; set; }
Property Value
API Level: preview
View Source
Sets or gets the timeout value set to the popup (in seconds).
Declaration
public double Timeout { get; set; }
Property Value
Type |
Description |
System.Double |
|
API Level: preview
Methods
Declaration
public PopupItem Append(string label)
Parameters
Type |
Name |
Description |
System.String |
label |
|
Returns
Type |
Description |
PopupItem |
The new PopupItem which contains a label.
|
API Level: preview
Declaration
public PopupItem Append(string label, EvasObject icon)
Parameters
Type |
Name |
Description |
System.String |
label |
The Label, which will be added into a new PopupItem.
|
EvasObject |
icon |
The icon, which will be added into a new PopupItem.
|
Returns
Type |
Description |
PopupItem |
The new PopupItem, which contains the label and icon.
|
API Level: preview
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type |
Name |
Description |
EvasObject |
parent |
Parent EvasObject.
|
Returns
Type |
Description |
System.IntPtr |
Handle IntPtr.
|
Overrides
API Level: preview
View Source
Uses this function to dismiss the popup in hide effect.
When the Popup is dismissed, the "dismissed" signal will be emitted.
Declaration
API Level: preview
Events
View Source
Dismissed will be triggered when the popup has been dismissed.
Declaration
public event EventHandler Dismissed
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
View Source
OutsideClicked will be triggered when users taps on the outside of Popup.
Declaration
public event EventHandler OutsideClicked
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
View Source
OutsideClicked will be triggered when the popup transition has finished in showing.
Declaration
public event EventHandler ShowAnimationFinished
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
View Source
OutsideClicked will be triggered when the popup is closed as a result of timeout.
Declaration
public event EventHandler TimedOut
Event Type
Type |
Description |
System.EventHandler |
|
API Level: preview
Implements
Extension Methods