Avalonia
Avalonia copied to clipboard
New API request: PopupFlyoutBase.IsInsidePopup(Visual v)
Is your feature request related to a problem? Please describe.
PopupFlyoutbase tries to hide the inner popup, so it's not intuitive to detect whether an element is inside this flyout.
Request for team review
Describe the solution you'd like
Add this API and check as Popup.IsInsidePopup did
Describe alternatives you've considered
Currently we can cast PopupFlyoutBase as IPopupHostProvider and get popup host.
Additional context
No response
We've reviewed that, and we prefer to expose the Popup property publicly to avoid duplicating a lot of "visual traversal" APIs on PopupFlyoutBase. The Popup property already exists and is protected, so already part of the public API.