Class VisualElementExtensions
Extension methods for VisualElement.
Inherited Members
Namespace: Unity.AppUI.Navigation
Assembly: Unity.AppUI.Navigation.dll
Syntax
public static class VisualElementExtensions
Methods
FindNavController(VisualElement)
Find the NavigationController used by the NavigationContainer that contains this visual element.
Declaration
public static NavController FindNavController(this VisualElement element)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | element | The reference element that must be a descendant of NavHost component. |
Returns
Type | Description |
---|---|
NavController | The NavController used by the NavHost that contains this visual element. |