Class Popup<T>
A generic base class for popups.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public abstract class Popup<T> : Popup where T : Popup<T>
Type Parameters
Name | Description |
---|---|
T | A sealed popup class type. |
Constructors
Name | Description |
---|---|
Popup(VisualElement, ApplicationContext, VisualElement, VisualElement) | Default constructor. |
Fields
Name | Description |
---|---|
m_LastFocusedElement | The last focused element before the popup was shown. |
Methods
Name | Description |
---|---|
InvokeDismissedEventHandlers(DismissType) | Called when the popup has been dismissed. This method will invoke any handlers attached to the dismissed event. |
InvokeShownEventHandlers() | Called when the popup has become visible. This method will invoke any handlers attached to the shown event. |
SetKeyboardDismiss(bool) | Activate the possibility to dismiss the popup via Escape key or Return button. |
SetLastFocusedElement(Focusable) | Set the last focused element before the popup was shown. |
Events
Name | Description |
---|---|
dismissed | Event triggered when the popup has been dismissed. |
shown | Event triggered when the popup has become visible. |