Skip to content

How do you add an image logo to the Title header? #11884

Answered by mhrastegari
enjoysmath asked this question in Q&A
Discussion options

You must be logged in to vote

You can use TitleView for that.
Here's a sample for you :

<ContentPage....
    <NavigationPage.TitleView>    
        <StackLayout HorizontalOptions="Center" VerticalOptions="Center"  Orientation="Horizontal">    
            <Image HorizontalOptions="Start" Source="sample.png" />
            <Label HorizontalOptions="Start" VerticalTextAlignment="Center" Text="MyPage" FontSize="Small"/>    
        </StackLayout>    
    </NavigationPage.TitleView>
    <Grid....
</ContentPage>

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by enjoysmath
Comment options

You must be logged in to vote
1 reply
@mhrastegari
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mhrastegari
Comment options

@enjoysmath
Comment options

@mhrastegari
Comment options

@enjoysmath
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants