Class ContextProvider
This element can be used in the visual tree to wrap a part of the user-interface where the context of the application needs to be overriden.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class ContextProvider : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
ContextProvider() | Default constructor. |
Fields
Name | Description |
---|---|
contextPrefix | Prefix used in Context USS classes. |
ussClassName | Main Uss Class Name. |
Properties
Name | Description |
---|---|
context | The current context, computed using the root context of the Panel and cascading context providers overrides until this ContextProvider instance. |
lang | The current language override.
|
preferredTooltipPlacement | The preferred Tooltip placement in this context. |
scale | The current UI scale override. |
theme | The current UI theme override. |
tooltipDelayMs | The delay in milliseconds before a tooltip is shown. |