Prism.Maui
Prism.Maui copied to clipboard
Toolbar item icons do not update when navigating back
When navigating back from a page that includes toolbar items to a page that includes toolbar items, the toolbar item icons shown on the second page show on the first page.
Steps to reproduce
Create an application with multiple pages, say MainPage and Page2. Add a toolbar item to MainPage with Text. Add a toolbar item to Page2 with an IconImageSource.
Start the application on Android.
Observe the toolbar item.

Navigate to Page2
Observe the toolbar items

Press the back button in the toolbar on Page2 to navigate back to MainPage.
Observe the toolbar item on MainPage is now the same toolbar item that was on Page2.

Expected outcome: The MainPage toolbar item is the original MainPage toolbar item Actual outcome: The MainPage toolbar item changes to the toolbar item from Page2.
Affected platforms
Prism 8.1.273-pre
Android is affected Windows is not. I am unable to test on iOS.
I'm using Visual Studio Professional Version 17.3.1
Reproduction project
Prism.Maui toolbar item icons issue.zip
This solution contains two projects MauiApp1 and PrismMauiApp2 with the same basic application described in the repro steps. MauiApp1 is a Maui shell app. The issue is not observed with this project. PrismMauiApp2 is a Prism.Maui app. The issues is observed with this project.
I hope I've provided enough info for this issue, but if there's anything else I can do to help out with it, please let me know.
Sorry I wasn't able to respond sooner. This issue would be with Maui itself not with Prism. We don't handle anything specific in this area.
@dansiegel No worries, I appreciate that you did respond.
Do you have any idea why it's not an issue in a Maui shell app, but it is an issue in a Prism.Maui app?
In the attached zip, there's a solution that contains two projects MauiApp1 and PrismMauiApp2 with the same basic application described in the repro steps. MauiApp1 is a Maui shell app. The issue is not observed with this project. PrismMauiApp2 is a Prism.Maui app. The issue is observed with this project.
Probably because they fixed something in Shell and broke it when not using shell... if you update your sample to use the native Navigation in Maui you should have the same result as you see with Prism
Thanks for the insight. It really seems like Maui is still not production ready, huh? Thanks again.