1

I have developed a control in which an image and text is displayed.

In left-to-right mode, the text is located on the left and the image on right side of control:

enter image description here

I have provided support for right-to-left display for my control, applying it just to the text, though, so currently it looks like this:

enter image description here

I would like to know if I should switch the position of the image and text as well, so that the text is displayed on the left in RTL mode:

enter image description here

Editor note: This question has been heavily edited, however I believe I have decoded the intent correctly. The author of this question included this version of the control as well: enter image description here
However, it is not clear to me what the original intent for this version was.

6
  • Could you provide some screenshot? Apr 10, 2017 at 11:05
  • @DominikOslizlo , JonW - see the edits with images.
    – Amal
    Apr 11, 2017 at 4:33
  • It's still not very clear what you're asking. Are you asking 'if an image is on the right, should the text be right-aligned?'
    – JonW
    Apr 12, 2017 at 8:43
  • I have options for Image and Text alignment. ImageBeforeText, ImageAfterText as you can see from images. When RTL is enabled, do i have to draw image after text when ImageBeforeText is set and vice versa? Or just changing the RTL drawing for only text?
    – Amal
    Apr 12, 2017 at 13:23
  • @Amal, could you tell me if the question - in the way it is after I edited it - does convey what you wanted to ask about? Apr 12, 2017 at 19:57

1 Answer 1

1

It totally depends on what you want the user to see first.

because LTR mode is for normal people who read starting from left and end at right so main thing which has to be shown should be on left.

and RTL mode is for people like in ARAB countries where people do their reading starting from right and at left.

if you want the image to be seen first followed by text.

  1. then in LTR do

enter image description here

  1. in RTL

enter image description here

and do it accordingly if you want text to be shown first

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.