docs-maui
docs-maui copied to clipboard
Styling Hight of Shell.TitleView
I am missing some documentation how to style the top of the shell page. Even when setting an Shell.TitleView with a tiny label the header of the page continues to be higher. It seems there must be some container around the Shell.TitleView and ShellToolbar that can not by styled.
<Shell.TitleView>
<Label BindingContext="{x:Reference shell}" Grid.Column="1" Text="{Binding Path=CurrentItem.Title, Mode=OneWay}" HeightRequest="10" FontSize="8" TextColor="White" />
</Shell.TitleView>
Below image show tiny label "Main" - but the top area (black part) continues to stay much higher. This is on a out of the box MAUI template.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: ae36db91-8ea2-a440-ea0f-64695d0a8124
- Version Independent ID: ae36db91-8ea2-a440-ea0f-64695d0a8124
- Content: .NET MAUI Shell pages - .NET MAUI
- Content Source: docs/fundamentals/shell/pages.md
- Product: dotnet-mobile
- Technology: dotnet-maui
- GitHub Login: @davidbritch
- Microsoft Alias: dabritch