Class Panel
This is the main UI element of any Runtime App. The Panel class will create different UI layers for the main user-interface, popups, notifications and tooltips. It also inherits from ContextProvider, hence this element must not have any ContextProvider ancestors.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Panel : ContextProvider, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
Panel() | Default constructor. |
Fields
Name | Description |
---|---|
mainContainerName | The name of the main UI layer. |
notificationContainerName | The name of the Notifications layer. |
popupContainerName | The name of the Popups layer. |
tooltipContainerName | The name of the Tooltip layer. |
Properties
Name | Description |
---|---|
contentContainer | The main UI layer container. |
context | The application context.
|
notificationContainer | The Notifications layer container. |
popupContainer | The Popups layer container. |
tooltipContainer | The Tooltip layer container. |
Methods
Name | Description |
---|---|
FindNotificationLayer(VisualElement) | Utility method to quickly find the current application's Notification layer. |
FindPopupLayer(VisualElement) | Utility method to quickly find the current application's Popup layer. |
FindTooltipLayer(VisualElement) | Utility method to quickly find the current application's Tooltip layer. |
UnregisterPopup(Popup) | Unregister a Popup from the list of dismissable popups. |