O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required