Description
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:?