Flowdirection property for text writing only

Haviv Elbsz 1,886 Reputation points
2022-08-18T08:14:01.227+00:00

Hi all

My Maui application UI is LTR flowdirection .
I have checkboxses and labels and Entry control and Editor control.

And I have a button that changes the flowdirection between LTR RTL.

The problem is that when I change from LTR
direction to RTL direction.

the controls change side and location.

How I can force the flowdirection to apply
only to text writing without affecting controls
change side and location.

also the title of the picker is disappointing
when switching from LTR to RTL.

Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,571 Reputation points Microsoft Vendor
    2022-08-19T08:36:29.69+00:00

    Hello,

    Do you want to keep controls' side and location when you set the Flowdirection to RightToLeft?

    If so, you can use HorizontalOptions to keep controls side and location. For example, you set FlowDirection="RightToLeft", but you need to keep the Label on the left. You can use the following code.

       <Label   
                   FlowDirection="RightToLeft"  
                   Text="Welcome to .NET MAUI!"  
                   HorizontalOptions="End"  
                   />  
    

    also the title of the picker is disappointing when switching from LTR to RTL.

    Does this title keep on the left in the popup window?

    As note: Ask one question at a time

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.