Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.6K
Views
Custom TitleView (top bar) in Xamarin.Forms Shell page

I am trying to create custom TitleView (the top bar of Shell page, where the hamburger icon menu is). Now, in designs, I have a few elements in that area - notification bell, info button and user image with name. However, Xamarin.Forms, being xamarin.forms, does not allow an easy override of this element.

How would I go about creating a custom controller for it? I am able to do it for entries, labels, text editors, etc, but nothing I've tried works for TitleView.

Below are images of current state (I can't even change the color of hamburger icon, every png goes white lol)

Current state

And what I'm hoping to achieve:

Desired outcome

I would really appreciate any pointers and explanations on how to create this custom renderer. Thank you all!

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

See the official Documentation on how you can customize the TitleView in a Shell application:

Xamarin.Forms Shell pages - Documentation

Sections

1 - Set page colors

  • ForegroundColor, of type Color, that defines the color to shade text and icons.

2 - Display views in the navigation bar

The Shell.TitleView attached property, of type View, enables any View to be displayed in the navigation bar.

While this property can be set on a subclassed Shell object, it can also be set on any pages that want to display a view in the navigation bar. For example, the following XAML shows displaying an Image in the navigation bar of a ContentPage:

You can add ImageButtons in TitleView and use IconTintColorEffect from XamarinCommunityToolkit to change the icon's color:

https://github.com/xamarin/XamarinCommunityToolkit/blob/main/samples/XCT.Sample/Pages/Effects/IconTintColorEffectPage.xaml

over 4 years ago · Santiago Trujillo Report

0

Custom Controllers are recommended when you want to change/override how an element behaves. What you need to do is to customize the Title View, an element that you can define easily on the same way you customize the Content in a View.

All you need to do is this:

<!-- YOUR XAML -->
<NavigationPage.TitleView>
   <Grid>
      <!-- YOUR CONTENT -->
   </Grid>
</NavigationPage.TitleView>

I'd like to say that you might keep tight to navigation bar height, there are some restrictions there you need to follow.

If you need kind of a template to reuse this title bar in several places, then you might need a Control Template.

You might visit these links:

Displaying views in the navigation bar

Control Templates in Xamarin Forms

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!