dotnet / dotnet/wpf

When FlowDirection is set to RightToLeft text is misplaced

Open
#10,653 1 comment 0 reactions 0 assignees View on GitHub
:mailbox_with_no_mail: waiting-author-feedback
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

When setting the flowdirection from RightToLeft and set the Text property as "25 days.8 hours:30 minutes:10 sec". The output text appears as days.8 hours:30 minutes:10 sec 25.

### Reproduction Steps

1. Run the sample.
2. You can notice that when i set the text it is misplaced.

### Expected behavior

When i set the text as "25 days.8 hours:30 minutes:10 sec". I need the text to appear as "25 days.8 hours:30 minutes:10 sec".

### Actual behavior

When i set the text as "25 days.8 hours:30 minutes:10 sec" it appears as days.8 hours:30 minutes:10 sec 25.

### Other information

[WpfApp1.zip](https://github.com/user-attachments/files/19461272/WpfApp1.zip)

Contributor guide

Open the contributing guide

Research direction

Start with the attached WpfApp1.zip and reproduce the issue using FlowDirection set to RightToLeft and the provided Text value. Trace the text-rendering behavior that moves “25” to the end; done means the complete string appears in its supplied order under RightToLeft flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.