Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] Anchor replacement/documentation missing in PopupV2

Open daltzctr opened this issue 3 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

  • [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

Anchor was removed in PopupV2, but this is not documented as a breaking change in https://github.com/CommunityToolkit/Maui/wiki/Migrating-to-Popup-v2 and no alternative is provided.

Unfortunately, I have yet to find a workaround for this behavior.

Expected Behavior

Documentation that it has been removed and what it's suggested replacement is

Steps To Reproduce

Migrate an app that used Anchor with PopupV2

Link to public reproduction project repository

N/A

Environment

Unrelated

Anything else?

No response

daltzctr avatar Oct 03 '25 15:10 daltzctr

I have this issue, too. We use popups to create our own custom value pickers, and having the anchor to point the popup to the button we use to trigger it makes it easier to tell what the popup is related to at a glance.

PlatinumDCole avatar Nov 12 '25 17:11 PlatinumDCole

I have the same issue. We use popups for adding reactions to a message. So we want to have the popup close to the message where you'd like to add the reaction. I made a workaround and get the VisualElement of the pressed button. Implemented an iOS and Android specific Service to get the X,Y screen position out of this VisualElement and then moved the popup view over the Margin-Property (X => Margin-Left, Y => Margin-Top) @PlatinumDCole maybe this help you

But it would be very helpfull if this would come out of the box for the PopupV2. Because it was a bit frustrating during migration to V2. This issue is not mentioned anywere in the breaking changes or migration guid.

Ben-Tanner avatar Nov 18 '25 14:11 Ben-Tanner