RTL Support

Right-to-left (RTL) support is used to display languages, such as Hebrew, which are right-aligned by default. Windows Phone XAML apps support RTL out of the box.

By setting the FlowDirection property on any FrameworkElement object, you can control whether text is presented from left to right (the default) or right to left. For example, a right-to-left flow direction can be applied to a TextBlock as shown:

<TextBlock FlowDirection="RightToLeft" />

Alternatively, a right-to-left flow direction can be applied to all elements on a page, like so:

<phone:PhoneApplicationPage...    FlowDirection="RightToLeft">...</phone:PhoneApplicationPage>

The FlowDirection property is bindable. The sample’s LocalizabilityViewModel class contains a FlowDirection ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.