Class Popup

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.

C#
Copy
public class Popup : Layout, IAccessibleObject
Inheritance
Implements

Constructors

View Source

Popup(EvasObject)

Creates and initializes a new instance of the Popup class.

Declaration
C#
Copy
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

AlignmentX

Sets or gets the AlignmentX in which the popup will appear in its parent.

Declaration
C#
Copy
public override double AlignmentX { get; set; }
Property Value
Type Description
System.Double
Overrides
API Level: preview
View Source

AlignmentY

Sets or gets the AlignmentY in which the popup will appear in its parent.

Declaration
C#
Copy
public override double AlignmentY { get; set; }
Property Value
Type Description
System.Double
Overrides
API Level: preview
View Source

AllowEvents

Sets or gets whether events should be passed to the event blocked area by a click outside.

Declaration
C#
Copy
public bool AllowEvents { get; set; }
Property Value
Type Description
Boolean
Remarks

The visible region of the popup is surrounded by a translucent region called the Blocked event area.

API Level: preview
View Source

ContentTextWrapType

Sets or gets the wrapping type of content text packed in the content area of Popup widget.

Declaration
C#
Copy
public WrapType ContentTextWrapType { get; set; }
Property Value
Type Description
WrapType
Remarks

Popup need to wrap the content text, so not allowing WrapType.None.

API Level: preview
View Source

Opacity

Gets the opacity value of the popup.

Declaration
C#
Copy
public override int Opacity { get; set; }
Property Value
Type Description
Int32
Overrides
API Level: preview
View Source

Orientation

Sets or gets the position in which the popup will appear in its parent.

Declaration
C#
Copy
public PopupOrientation Orientation { get; set; }
Property Value
Type Description
PopupOrientation
API Level: preview
View Source

Timeout

Sets or gets the timeout value set to the popup (in seconds).

Declaration
C#
Copy
public double Timeout { get; set; }
Property Value
Type Description
System.Double
Remarks

Since calling Show() on a popup restarts the timer controlling when it is hidden, setting this before the popup is shown, will in effect mean starting the timer when the popup is shown. TimedOut is called afterwards, which can be handled, if needed. Set a value <= 0.0 to disable a running timer. If the value is > 0.0 and the popup is previously visible, the timer will be started with this value, canceling any running timer.

API Level: preview

Methods

View Source

Append(String)

Adds the label to a Popup widget.

Declaration
C#
Copy
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
View Source

Append(String, EvasObject)

Adds the Label and icon to a Popup widget.

Declaration
C#
Copy
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
View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
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

Dismiss()

Uses this function to dismiss the popup in hide effect. When the Popup is dismissed, the "dismissed" signal will be emitted.

Declaration
C#
Copy
public void Dismiss()
API Level: preview

Events

View Source

Dismissed

Dismissed will be triggered when the popup has been dismissed.

Declaration
C#
Copy
public event EventHandler Dismissed
Event Type
Type Description
System.EventHandler
API Level: preview
View Source

OutsideClicked

OutsideClicked will be triggered when users taps on the outside of Popup.

Declaration
C#
Copy
public event EventHandler OutsideClicked
Event Type
Type Description
System.EventHandler
API Level: preview
View Source

ShowAnimationFinished

OutsideClicked will be triggered when the popup transition has finished in showing.

Declaration
C#
Copy
public event EventHandler ShowAnimationFinished
Event Type
Type Description
System.EventHandler
API Level: preview
View Source

TimedOut

OutsideClicked will be triggered when the popup is closed as a result of timeout.

Declaration
C#
Copy
public event EventHandler TimedOut
Event Type
Type Description
System.EventHandler
API Level: preview

Implements

Extension Methods