docs-maui icon indicating copy to clipboard operation
docs-maui copied to clipboard

Styling Hight of Shell.TitleView

Open kdotdk opened this issue 2 years ago • 0 comments

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. image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

kdotdk avatar May 11 '23 14:05 kdotdk