Hi,
We found that the FlowDirection of xamMaskedInput always auto set to LeftToRight. Even you set this property to RightToLeft like below codes. This is unacceptable in Arabic and Hebrew culture.
<ig:XamMaskedInput FlowDirection="RightToLeft" Mask="{}{char:10:0-9a-zA-Z}"/>
But when I change the FlowDirection by Snoop, it seems everything is OK. Is any risk for change the flowdirection to RightToLeft? How can I change the flowdirection to RightToLeft by codes?
This is very important for our company.Please help me ! Thanks.
Hello,
There was a discussion about the proper implementation of the RTL support for the input controls a while ago and it was decided to force it to LTR since no proper way for implementing this, particularly in Silverlight (and the inputs are available for Silverlight as well), was found. That being said using a custom approach to force the Right-to-left support for WPF should work as expected.
Hi Maria,
Any update on this? This is urgent for our product.
Thanks,
Thanks for your reply. Actually,set the HorizontalContentAlignment to right is not my expected behavior. You can check the TextBox behavior by below codes and you will see the difference between xamMaskedInput and TextBox.
<TextBox FlowDirection="RightToLeft" />
In Arabic and Hebrew, the first character is the most right in editor. I believe that this is a bug of xamMaskedInput. And we have a workaround to set the property FlowDirection of XamMaskedInput to RightToLeft. I just want to know is any reason of XamMaskedInput always force set FlowDirection to LeftToRight.
Hello Brandon,
XamMaskedInput responds of changes in the FlowDirection e.g. if FlowDirection is set to RightToLeft the spin buttons will be displayed on the left side of the control. I believe what you are experiencing is that the text is not right aligned with that settings. If that so you can change that behavior by settings the HorizontalContentAlignment property to Right.