how to return more complex data than bool from popup v2 #2938
-
|
i've read this https://github.com/CommunityToolkit/Maui/wiki/Migrating-to-Popup-v2 and this https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/popup/popup-result in my project i had this working with version 1 of popup (forgive me the use of dialog instead of popup) now i migrated to this point: but i don't see a property to use in the result: so i took a look at this: and i understood it like this: sadly this does not work. i saw that i maybe need to update my code behind file of the popup by but what to do then in my xaml? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
thanks claude sonnet 4.5. so you have to use the generic overload: |
Beta Was this translation helpful? Give feedback.

thanks claude sonnet 4.5.
the solution:
so you have to use the generic overload:
ShowPopupAsync<T, TResult>instead of justShowPopupAsync<T>