---
title: "Discussion on \"Customize the Title Bar of a MAUI app with these simple steps\" | Hashnode"
description: "Discussion on \"Customize the Title Bar of a MAUI app with these simple steps\". Add custom fonts, title, buttons and a secondary menu to the navigation bar of your .NET MAUI Shell app."
url: "https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Customize the Title Bar of a MAUI app with these simple steps](https://blog.ewers-peters.de/customize-the-title-bar-of-a-maui-app-with-these-simple-steps?utm_source=hashnode&utm_medium=feed)

Add custom fonts, title, buttons and a secondary menu to the navigation bar of your .NET MAUI Shell app.

Apr 13, 2023 · 6 min read · blog.ewers-peters.de  
Updated Oct 20, 2023  
Read the article

-   [#dotnet-maui](https://hashnode.com/tag/dotnet-maui)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)
-   [#app-development](https://hashnode.com/tag/app-development)
-   [#navigation-bar](https://hashnode.com/tag/navigation-bar)

## Written by

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

@ewerspej · Germany

  
[View profile](https://hashnode.com/@ewerspej)

Mobile App Developer

I am a passionate mobile app and software developer with a focus on C# .NET, Xamarin.Forms and .NET MAUI.

## Responses 8

Markdown supported · ⌘↵ to post

[Edison J. Romo R.](https://hashnode.com/@Ejrr1085)

[Jun 28, 2024](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/667ed3bcfdee35d20f423523)

Where I set ContentPage.ToolbarItems? in Shell.App or in a new ContentPage.xaml? This tutorial is incomplete!

[Simon O'Rorke](https://hashnode.com/@SimonORorke)

[Jan 9, 2024](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/659d1c002c239f2ed348de48)

Thanks, this is very helpful. An improvement I would like to make is to remove or hide the unused menu button, the three dots at the right end of the title bar. Before I added **<Shell.TitleView>** to AppShell, there was no menu on the title bar. And I don't need one. The menu appears when **<Shell.TitleView>** is added to customise the title bar, in Windows at least. Your demo app also has the unused menu button on its title bar.

Unfortunately, it is apparently impossible, for now, to remove the three dots menu. See [https://github.com/dotnet/maui/issues/7034](https://github.com/dotnet/maui/issues/7034)

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Feb 17, 2024](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/659d1c002c239f2ed348de48#reply-65d068be556d1cde6cb5bb30)

Sorry for the late reply. Yes, that's something that would be nice indeed. I suppose this should be possible using handlers, but the cross-platform control doesn't support it, yet.

[Sayyad Hasan](https://hashnode.com/@hasandeveloper)

[Nov 14, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/65530b030701ac13578c73a4)

Awesome, I was looking something like this

[Sebastian Hoppe](https://hashnode.com/@sebastian5674)

[Aug 29, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64ee505c9aae004fb5a8e1cf)

Hi Julian,

I have another question for you regarding the toolbar items. It's great to add icons to the toolbar and even in different colors. Is it also possible to change the color of them in runtime and if yes, how?

Thanks in advance! Sebastian.

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Sep 8, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64ee505c9aae004fb5a8e1cf#reply-64fb4c6fd97346b470a1d22f)

Hi Sebastian.

Sorry, I didn't see your comment before.

Have you tried using data binding to change the color during runtime?

Another approach would be to build the toolbar in the code-behind using C# and then setting different colors based on some conditions.

As I am not near my computer at the moment, I won't be able to give a specific answer at the moment.

If you can't figure it out, let me know and I might write up another blog post about configuring/updating the toolbar from the code-behind during runtime.

Cheers Julian

[Sebastian Hoppe](https://hashnode.com/@sebastian5674)

[Aug 25, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64e889e6224d490ab6904547)

P.S.: Actually, it regards to all popup views, such as alert views (DisplayAlert(...)), picker selection views and others. That's why - in my case - it would be sensible to add a theme for that. But how?

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Aug 27, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64e889e6224d490ab6904547#reply-64eb1d6ccc3035243ea8007d)

Hi [Sebastian Hoppe](https://hashnode.com/@sebastian5674),

popups such as alert dialogs and the picker use native platform views. In order to theme those, you need to use platform-specific code.

This can be achieved either by using custom renderers _(the old-fashioned Xamarin.Forms way)_, [control customization using handlers and mappers](https://learn.microsoft.com/dotnet/maui/user-interface/handlers/customize) or by manually setting color values in the _styles.xml_ of the Android platform, similar to how I have described it in my [blog post about splash screens in MAUI](https://blog.ewers-peters.de/lets-customize-the-splash-screen-of-a-maui-app#heading-change-appearance-based-on-android-system-theme).

I hope this helps.

Cheers Julian

[Sebastian Hoppe](https://hashnode.com/@sebastian5674)

[Aug 29, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64e889e6224d490ab6904547#reply-64ee4f9c0f36f04fe5fe3cde)

Hi [Julian Ewers-Peters](https://hashnode.com/@ewerspej),

actually I tried Handler (found one to change the color of the "3-point-item" but sadly not for the popup background color). In the colors.xml I could change the default purple color of the dialog buttons which is hard to see on dark grey background. If you are able to change the background color of the popup, that contains your secondary toolbar items, to green which would fit your color style nicely please let me know. :-)

Regards. Sebastian.

[Sebastian Hoppe](https://hashnode.com/@sebastian5674)

[Aug 25, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64e88870224d490ab6904522)

Hi,

how do I change the background (which is white on your screenshot) and text color of the secondary items?

Thanks in advance. Sebastian.

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Aug 27, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/64e88870224d490ab6904522#reply-64eb1be7cc3035243ea8004e)

Hi [Sebastian Hoppe](https://hashnode.com/@sebastian5674),

which background do you mean?

On the top, you can see the status bar, which on Android can be set in the platform-specific code, e.g. MainActivity.cs via this method:

```
Window?.SetStatusBarColor(Colors.Orange.ToAndroid());
```

On iOS, this shouldn't be necessary, usually the page background color is used, which can be set in a platform-independent fashion like this:

```
<ContentPage
    BackgroundColor="Orange">

</ContentPage>
```

I hope this helps.

I'm thinking about writing a separate blog post about that.

Cheers Julian

[Thomas Schreiner](https://hashnode.com/@tstom)

[Jun 7, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/648085d8837566372d407c09)

Thank you for this. Exactly what I was looking for. Well written. You made it easy to understand.

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Jun 7, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/648085d8837566372d407c09#reply-64809530837566372d407e2d)

Thank you, [Thomas Schreiner](https://hashnode.com/@tstom)! I'm happy that it helps you.

[steven](https://hashnode.com/@stevedparry)

[May 18, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/646650337bd6d2e2dc871e33)

How do I globally set the colour of the title bar?

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[May 18, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/646650337bd6d2e2dc871e33#reply-6466603beb43c7e4ebcff90b)

If you're using Shell, you can navigate to the _Styles.xaml_ file and then find the style setter for the `Shell.BackgroundColor` property:

```
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light=#123456, Dark=#654321" />
```

Or when you use a `NavigationPage` or `TabbedPage`, you can set the `BarBackgroundColor`:

```
    <Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
```

Of course, you don't need to use the `AppThemeBinding`, you can also set it to a single, static value.

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Apr 13, 2023](https://hashnode.com/posts/customize-the-title-bar-of-a-maui-app-with-these-simple-steps/6437b80e25023970a8a7428b/comment/6437f7933878859a093cd0c7)

I've noticed a few issues on iOS and I didn't want to include workarounds in this blog post to keep it clean. The respective issues are filed in the MAUI GitHub repository: [github.com/dotnet/maui/issues/14558,](https://github.com/dotnet/maui/issues/14558,) [github.com/dotnet/maui/issues/14559](https://github.com/dotnet/maui/issues/14559)
