FlowDirection change the validation style of textbox
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
Validation style of textbox does not appear correct when set FlowDirection
```xaml
```
### Reproduction Steps
run the application with arabic culture
```c#
var culture = new CultureInfo("ar-Ye");
Thread.CurrentThread.CurrentCulture = culture;
Thread.CurrentThread.CurrentUICulture = culture;
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
//Get the FlowDirection for current Culture
var flowDirection = CultureInfo.CurrentCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
//Set the FlowDirection for all controls
FrameworkElement.FlowDirectionProperty.OverrideMetadata(typeof(FrameworkElement), new
FrameworkPropertyMetadata(flowDirection));
```
then set on textbox
```xaml
FlowDirection="LeftToRight"
```
### Expected behavior
To be like
### Actual behavior
### Regression?
it happen in dotnet 10
### Known Workarounds
_No response_
### Impact
_No response_
### Configuration
dotnet 10
windows 11 - default display language is English
x64
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.