RightToLeftLayout in Panel

前端 未结 3 882
星月不相逢
星月不相逢 2021-01-13 16:11

I have a windows project (C#) which we are going to use for Arabia. As we know the country following Right to Left mechanism. How can i move my all controls position in pane

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 16:38

    Facts about RightToLeftLayout:

    • It has effect if RightToLeft is set to Yes, only.
    • RightToLeftLayout is a Boolean property and the values are true or false RightToLeftLayout property is not inherited by its child controls.
    • Unlike the RightToLeft property you need to individually set the RightToLeftLayout to each individual control that supports this property.
    • RightToLeftLayout would change the origin of its control and mirror the coordinates. So the origin is at the top-right instead of the top-left of the control. The coordinates would then increase to the left, instead of the right.

    so according to second point you need to set it to all individual child elements

提交回复
热议问题