Method GetPage
GetPage(VisualElement?)
Gets the page that contains the specified view.
public static Page? GetPage(VisualElement? view)
Parameters
view
VisualElementThe view to find the containing page for.
Returns
- Page
The page that contains the specified view, or the first window's current page if no containing page is found.