-
|
Hi, This is exactly the same problem and this fellow developer had no working solution : #2693 So i just want to repeat the problem... But now there is no option if you DONT USE SHELL. The community toolkit code cause a crash if you don't provide a Shell. So for now i'm stuck i want to update our app to dotnet 10 and update all package but i can't because of this problem... Did someone found a solution ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
@Skarzag there is not currently a solution to passing data across to popups using INavigation but I would like to point out that the following comment is inaccurate - there are multiple methods for showing a popup some which take INavigation or Page parameters
|
Beta Was this translation helpful? Give feedback.
-
Thanks to @pictos, I found a solution.await _popupService.ShowPopupAsync(nav, laPopup); //don't exist I don't know why this call with a view parameter exist as an extension method of Navigation & Page but not in the PopupService itself. I've updated my repo with a solution to my problem for those in needs : https://github.com/Skarzag/PopupV2NavigationWithParameters Don't you think you should add the _popupService.ShowPopupAsync(nav, laPopup) to the service ? |
Beta Was this translation helpful? Give feedback.

Thanks to @pictos, I found a solution.
await _popupService.ShowPopupAsync(nav, laPopup); //don't exist
await _popupService.ShowPopupAsync(nav, laPopup); //don't exist
await nav.ShowPopupAsync(laPopup); //exist <<<<
I don't know why this call with a view parameter exist as an extension method of Navigation & Page but not in the PopupService itself.
So now i'm getting a transiant popup from the container that i initiate with data and... pass it to the viewmodel via the famous Opened event. Then nav.ShowPopupAsync();
I've updated my repo with a solution to my problem for those in needs : https://github.com/Skarzag/PopupV2NavigationWithParameters
Hope it will help !
Don't you think you should…