A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello @Sreenivasan, Sreejith ,
Thanks for your question.
I recommend wrapping your elements inside a 3-column Grid within the Shell.TitleView.
Using Auto sizing for the icons and an expanding middle column will anchor your elements to the left, center, and right. Additionally, explicitly defining the HeightRequest and WidthRequest on your image buttons will safely clamp the touch targets, overriding iOS's oversized default rendering.
You can refer to these following code example:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TitleViewFix.MainPage">
<Shell.TitleView>
<Grid ColumnDefinitions="Auto, *, Auto" VerticalOptions="Center" Padding="10.0">
<ImageButton Grid.Column="0" VerticalOptions="Center">
<ImageButton.Source>
<FontImageSource FontFamily="OpenSansRegular" Glyph="A" Size="24" Color="Black" />
</ImageButton.Source>
</ImageButton>
<Label
Grid.Column="1"
Text="Alerts"
HorizontalOptions="Center"
VerticalOptions="Center"
TextColor="Black"
FontAttributes="Bold"
FontSize="Title"
/>
<ImageButton Grid.Column="2" VerticalOptions="Center">
<ImageButton.Source>
<FontImageSource FontFamily="OpenSansRegular" Glyph="M" Size="24" Color="Black" />
</ImageButton.Source>
</ImageButton>
</Grid>
</Shell.TitleView>
</ContentPage>
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.