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
AccessibilityStates
public override AccessibilityStates AccessibilityStates { get; }
Property Value
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
Exclusive
Prevents an outside pointer press from dismissing this modal popup.
public bool Exclusive { get; set; }
Property Value
HideOnOutsideClick
public bool HideOnOutsideClick { get; set; }
Property Value
Modal
public bool Modal { get; set; }
Property Value
Methods
Hide(PopupHideReason)
public void Hide(PopupHideReason reason = PopupHideReason.Programmatic)
Parameters
reasonPopupHideReason
PopupAt(Vector2)
public void PopupAt(Vector2 position)
Parameters
positionVector2
Events
PopupHidden
public event Action<Popup, PopupHideReason> PopupHidden
Event Type
PopupShown
public event EventHandler PopupShown