Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Forms NavigationPage.TitleView RTL, the content disappered

I have a xamarin.forms app that supports RTL, but when i convert a Page to RTL the NavigationPage.TitleView text disapears.

The NavigationPage.TitleView Code:

<NavigationPage.TitleView>
    <Label Text="{Binding Title}" Style="{StaticResource TittleLabel}" HorizontalTextAlignment="Start" HorizontalOptions="Start" VerticalOptions="CenterAndExpand"></Label>
</NavigationPage.TitleView>

This is the Result screen.

Thanks in Advance.

like image 296
ahmed gaber Avatar asked Oct 30 '25 16:10

ahmed gaber


1 Answers

For RTL, the Label having RTL issues. Please find the issue link below.

https://github.com/xamarin/Xamarin.Forms/issues/3611

When setting RTL to Page, the title view is disappeared. you can report to the Xamarin team. For instead of setting a title through Label, directly setting title property of ContentPage like below,

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             mc:Ignorable="d"
             Title="RTL"
             FlowDirection="RightToLeft">

It's working but RTL is not applying. But the title is displayed. You can report this issue also.

like image 121
Ganesan VG Avatar answered Nov 03 '25 01:11

Ganesan VG