Skip to content

Continued: Popup V2 does not allow any way of passing data to a popup anymore if you are not using Shell #2696

Answered by TheCodeTraveler
LeoJHarris asked this question in Q&A
Discussion options

You must be logged in to vote

There are many ways to pass data into your Popup, using PopupService + Dependency Injection, using DataBinding, using ViewModels, using Messaging Services, subscribing to events like Popup.Opened Popup.Closed View.Loaded, View.Unloaded, View.ChildAdded, View.PropertyChanged etc.

Popup is now just a View and should be thought of and implemented like any other View in .NET MAUI. For example, you will pass data into Popup the same way you would pass data into another ContentPage, Button, Label, etc.

Replies: 3 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TheCodeTraveler
Comment options

Comment options

You must be logged in to vote
12 replies
@TheCodeTraveler
Comment options

Answer selected by TheCodeTraveler
@LeoJHarris
Comment options

@belmonmi
Comment options

@belmonmi
Comment options

@LeoJHarris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants