-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Shell] TitleView Improvements #4650
Comments
Thanks so much for your extensive message here! I don't think this will be something we will do for Forms anymore, but keep your eye on .NET MAUI! |
I think what you want can already be achieved using inheritance. Set a BaseContentPage like:
And then simply inherit any page like this:
and .cs file:
The page will have MY AWESOME TITLE as title if you don't override it on your page as usual. |
Summary
Let's have a Shell with
FlyoutBehavior="Disabled"
and lets assume the following 2 approaches:In the first approach (BottomNavigationView) there is no way to set a global TitleView that applies to all the ShellSection. Each page must have it's own TitleView and on switch the TitleView gets re-rendered and it is not a good UX. Maybe am i missing something? I tried to set the Shell.TitleView to the Shell and into the ShellItem but it doesn't seem to work.
In the second approach (TopTabs) setting at least at one content the TitleView, it applies everywhere! So no flickering on the TitleView, but it's confusing! If i apply the TitleView to the Page it will work or not? Maybe it depends?
The way I am thinking the Shell is to be able to customize the global TitleView, while giving the opportunity to change the title view on any level. What i mean is:
API Changes
No notable API changes, since the Shell.TitleView is already an attached property.
Intended Use Case
These will apply to anyone that wants to customize the toolbar!
Parent: #2415
The text was updated successfully, but these errors were encountered: