-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] ToolbarItems not shown on shell modal page #13477
Comments
This also happens with TitleView - no items appearing - so probably related. |
I have this issue but as @bcaceiro said with the TitleView on any page |
hi guys. @PureWeen noticed this has been moved to to-do. Is there any timeline on this or a workaround? I am trying to migrate to shell and this has left me completely stumped with title views (amongst other things). For modal, we have these three issues stated, for tabbed pages we have the issue that the view is not correctly aligned. |
@rysbilinski for modal page as workaruond I did similary looking layout (custom xaml on that page), like toolbar looks not on modal pages. |
Anything happening on this issue? |
I have the same issue and the following workaround works for me (on iOS, not tested in Android): |
thanks @scastiello for the work-around! btw it works on android as well. however, this is really frustrating that, for example, page title has to be manually created with a custom Shell.TitleView for a modal page. I fully embraced shell navigation and have fully re-designed my app in terms of navigation, but now I'm struggling to understand why modal pages can't have a normal <ContentPage Title..... shown on them (without back button of course). Xamarin, can we please have modal pages working the old way? |
hello, is this issue fixed ? i have the same issue currently. |
waiting for a fix ... |
Description
When using Shell template, I would like to use
ContentPage.ToolbarItems
declaration on content pages to add some commands.ContentPage.ToolbarItems
toolbar at the top is not visible on modal page.Is this by design? Can I somehow manually render
ContentPage.ToolbarItems
with some custom xaml?Steps to Reproduce
Shell.Current.Navigation.PushModalAsync(new Page2());
Shell.NavBarIsVisible="True"
<ContentPage.ToolbarItems> <ToolbarItem Text="Example" /> </ContentPage.ToolbarItems>
Expected Behavior
ContentPage.ToolbarItems
is visibleActual Behavior
None
ContentPage.ToolbarItems
,Shell.TitleView
,Shell.BackButtonBehavior
are visible.Screenshots
Basic Information
Environment
Show/Hide Visual Studio info
The text was updated successfully, but these errors were encountered: