Class Popup

Namespace
Forma
Assembly
Forma.dll

A top-level transient panel. Modal popups gate pointer/focus input to their subtree and can optionally dismiss themselves when the user presses outside their bounds.

public class Popup : TemplatedControl, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
Popup
Implements
Derived
Inherited Members

Constructors

Popup()

public Popup()

Properties

AccessibilityRole

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

AccessibilityStates

public override AccessibilityStates AccessibilityStates { get; }

Property Value

AccessibilityStates

BackgroundColor

public Color? BackgroundColor { get; set; }

Property Value

Color?

BorderColor

public Color? BorderColor { get; set; }

Property Value

Color?

BorderWidth

public int BorderWidth { get; set; }

Property Value

int

Exclusive

Prevents an outside pointer press from dismissing this modal popup.

public bool Exclusive { get; set; }

Property Value

bool

HideOnOutsideClick

public bool HideOnOutsideClick { get; set; }

Property Value

bool

Modal

public bool Modal { get; set; }

Property Value

bool

Methods

Hide(PopupHideReason)

public void Hide(PopupHideReason reason = PopupHideReason.Programmatic)

Parameters

reason PopupHideReason

PopupAt(Vector2)

public void PopupAt(Vector2 position)

Parameters

position Vector2

Events

PopupHidden

public event Action<Popup, PopupHideReason> PopupHidden

Event Type

Action<Popup, PopupHideReason>

PopupShown

public event EventHandler PopupShown

Event Type

EventHandler