I've created a special purpose rich text editor in Wpf. There, I have two buttons which control number digit substitution, converting 123 to ١٢٣ or vice versa.
The first button does this:
targetRange.ApplyPropertyValue(NumberSubstitution.CultureOverrideProperty, new CultureInfo("fa-IR"));
targetRange.ApplyPropertyValue(NumberSubstitution.CultureSourceProperty, NumberCultureSource.Override);
targetRange.ApplyPropertyValue(NumberSubstitution.SubstitutionProperty, NumberSubstitutionMethod.Traditional);
to show all digits in the selection as arabic-hindi digist ١٢٣ and the second does:
targetRange.ApplyPropertyValue(NumberSubstitution.CultureOverrideProperty, new CultureInfo("en-US"));
targetRange.ApplyPropertyValue(NumberSubstitution.CultureSourceProperty, NumberCultureSource.Override);
targetRange.ApplyPropertyValue(NumberSubstitution.SubstitutionProperty, NumberSubstitutionMethod.European);
to show them as Arabic-European digits 123.
I'm trying to create a silverlight equivalent of this editor. It seems that I'm unable to perform the same task in silverlight. Any google searches about number digit substitution in silverlight yield no related results.
Can you please point me in the right direction?
PS: Changing the CultureInfo is not an option, as I need to mix these numbers in the same application.