Reputation: 7240
I'm working on a WinForms application and I have a couple of controls (in particular, a listbox and a datagridview) that will need to display a mix of RTL and LTR data simultaneously. For example, I have a listbox that contains English, Arabic, German and Hebrew strings. Obviously the listbox control has a RightToLeft property and at the moment, I have a button in my UI that lets the user toggle that property between RTL and LTR as they see fit. My customer seems satisfied with this approach but I'm curious how other designers/developers typically deal with this scenario?
Upvotes: 2
Views: 531
Reputation: 1318
I don't really know Winforms, but you can probably add Unicode directionality control characters to the actual strings. It's hacky, but it should work.
Here are the relevant characters:
You can copy and paste them from the character map or create strings from Unicode numbers and concatenate them in runtime.
Hope it helps.
Upvotes: 2