Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

New API request: PopupFlyoutBase.IsInsidePopup(Visual v)

Open rabbitism opened this issue 9 months ago • 1 comments

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.

Image

Additional context

No response

rabbitism avatar Mar 27 '25 09:03 rabbitism

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.

MrJul avatar Jun 11 '25 08:06 MrJul