dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.01k stars 1.72k forks source link

Graphical objects should be drawn from Right To Left when FlowDirection is RightToLeft #14038

Open hamiddd1980 opened 1 year ago

hamiddd1980 commented 1 year ago

Description

For Right To Left Languages and when Page FlowDirection is set to RightToLeft, the Graphical objects (Like Line,Rectangle and ...) should follow the page direction and be drawn from Right To Left. In other words, for Right To Left languages the Origin of Coordinate system( 0,0) must be at Top-Right and Positions coordinates should be calculated regarding this point.

Wrong Layout and Coordinate Origin: RTL_LINE_Wrong

Correct Layout and Coordinate Origin: RTL_LINE_Correct

Steps to Reproduce

1-Create a New Maui Project 2-set ContentPage FlowDirection="RightToLeft" 2-Add a Graphical Object like Line :

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MAUI_Graphics.MainPage"
             FlowDirection="RightToLeft">

    <VerticalStackLayout>
         <Line X1="50" Y1="50" X2="200" Y2="200" Stroke="Green" Fill="Green" StrokeThickness="3"></Line>
    </VerticalStackLayout>

</ContentPage>

Link to public reproduction project repository

https://github.com/hamiddd1980/MAUI_Graphics

Version with bug

8.0 previews

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

Android 13

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.