Hi All,
A part of our application displays XPS documents in Silverlight. We've usually achieved this by taking the XAML from the XPS, stripping out non supported fields, then using a XAMLReader to parse the XAML. This gives us a canvas element that we can then attach to our Visual Tree. XPS is rendering all its text elements using the Glyphs element.
We have now tried to display RTL text, and it doesn't work, instead the text starts at the correct origin, but goes off to the right and gets clipped.
One of the non supported properties for Glyphs is the BidiLevel property. As a result we look at the BidiLevel and if it's equal to "1" we set the FlowDirection property on Glyphs to be RightToLeft. I assumed this would then work. If I debug I can see the glyphs element containing the text I want to be flowing RTL, and I can look at the element in the debugger and see the FlowDirection being set correctly, but when it renders it isn't working. Is there something more I need to do to this to get this flowing RTL? It correctly renders in XPS.
Regards,
Will