Open arahmancsd opened 1 year ago
As a workaround until we get this fixed, you can add a call to InvalidateMeasure()
after you change the page's FlowDirection
- that will force the page to update and lay things out according to the new setting:
private void OnCounterClicked(object sender, EventArgs e)
{
count++;
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
FlowDirection = FlowDirection == FlowDirection.LeftToRight ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
InvalidateMeasure();
}
Description
I am trying to change
FlowDirection
of the content page based on Localization, however, theFlowDirection
seems to have no effect on Android. The property is wholly ignored in Android.Windows Left to Right
Windows Right to Left
Android 33 - Left to Right
Android 33 - Right to Left
Steps to Reproduce
Run the project and click on the button "Click me". The button changes direction each time clicked.
Link to public reproduction project repository
https://github.com/arahmancsd/MauiApp2.App
Version with bug
7.0.86
Last version that worked well
7.0.86
Affected platforms
Android
Affected platform versions
Android 33
Did you find any workaround?
No response
Relevant log output
No response