Skip to content

FlowDirection RightToLeft in TextBox with text c:\ when language is Arabic #1743

Open
@deepakG86

Description

@deepakG86

I am trying to create a WPF textbox that can take user input for a folder/network path. The textbox needs to support other languages including Arabic.

The flowdirection for the textbox gets set based on the language, so for Arabic the flow direction of text box is right to left.

Now, the issue is when I enter "c:". This gets displayed as "/:c".
But when we enter the next character, it switches correctly for example : "c:\a" is displayed correctly as "c:\a".

Same think when we have "(" or ")".

What is the best solution to handle this behavior?
I have tried to detect neutral characters in the text and inserting a LTR character but that has weird consequence:
c
c:
c:\ --- here i enter the special LTR marker
the next typed character goes to the other end:
ac:?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionGeneral question, not a problem in source code or documentation (yet)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions