I have looked on Stack overflow for an answer but can't seem to find one relating to c# wpf they all seem to be web and html solutions.
I have the following line of code
contactName = string.Format("{0} ({1})", person.Name, person.Age);
This puts the persons name and then in brackets their age. We have localized our application to be in arabic so we can test that the right to left text formatting will work however whenever this string appears on screen it is always displayed as (Bob (35
I have read that this is a problem with the bidirectional algorithm but have no idea how to fix it.
If I add something so the bracket is not at the end then it works.
contactName = string.Format("{0} ({1}).", person.Name, person.Age);
But we don't want to have to put a full stop at the end of every piece of text with a bracket at the end.
If anyone could help it would be really useful. Ideally we would be looking for a solution which we can do application wide rather than having to find every instance where there is going to be a bracket at the end of the text and implement the fix.