Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hamiddd1980 opened this issue Mar 17, 2023 · 1 comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/android 🤖 platform/iOS 🍎 t/enhancement ☀️ New feature or request
Milestone

Comments

@hamiddd1980
Copy link

hamiddd1980 commented Mar 17, 2023

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

@hamiddd1980 hamiddd1980 added the t/bug Something isn't working label Mar 17, 2023
@jsuarezruiz jsuarezruiz added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing t/enhancement ☀️ New feature or request and removed t/bug Something isn't working labels Mar 20, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Mar 20, 2023
@ghost
Copy link

ghost commented Mar 20, 2023

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.

@hartez hartez changed the title Graphical objects should be drawn from Righ To Left when FlowDirection is RightToLeft Graphical objects should be drawn from Right To Left when FlowDirection is RightToLeft Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/android 🤖 platform/iOS 🍎 t/enhancement ☀️ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants