[Bug] [Android] ShellContentPage ContentPage.ToolbarItem not rendering
See original GitHub issueDescription
Adding a toolbaritem to ContentPage of ShellContent Route not showing at toolbar. When navigate using bottom navigation of Shell TabBar at Android, ToolBarItem show a blink and disappear.
Steps to Reproduce
- Create new Maui project
- Add new Xaml-Page
- Add ContentPage.ToolbarItems to the newly created page
- Replace content of MainPage with a Shell
- Add the xml-Namespace xmlns:local=“clr-namespace:cvmaker”
- Add Tab to the Shell with ShellContent ContentTemplate=“{DataTemplate local:HomePage}”
Version with bug
Preview 10 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
no
Relevant log output
no
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top Results From Across the Web
xaml - ToolbarItem is not showing
The ToolbarItems needs a Navigation Page to show them up. So modify MainPage wrapped by a navigation page: ... ToolbarItems> <ContentPage.
Read more >Toolbar image icons not displaying (Android) - Microsoft Q&A
It seems to be a problem with the toolbar. I've seen some others have this same issue in other forums. How can I...
Read more >Shell Content page destruction - Xamarin.Forms - RSSing.com
Using 4.3, say I have 3 tab items, each of them having 2 ShellContent items. I am using ContentTemplate to only create the...
Read more >[Code]-Check content of T item C# - appsloveworld.com
var item = (WrappedSelection<Projects>)arg);. But a better solution would be to change the signature of the method so the argument is of the...
Read more >Untitled
Forms Shell - Xamarin Microsoft Learn xml - Xamarin throw error : No view ... /how-can-i-obtain-current-shell-content-page-reference-in-xamarin-app-shell ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I discovered a workaround for this, It seems adding the ToolbarItems after the page has rendered works.
Did you test it use Shell ContentPage? Shell ! @PureWeen