Live Chat Icon For mobile
Live Chat Icon

How can I set the substitution property by overriding the default substitution ?

Platform: WPF| Category: Attributes

In the following example, the first TextBlock does not have the Substitution property set, so the algorithm displays Arabic digits as expected. However in the second TextBlock, the substitution is set to ’European’, overriding the default substitution for Arabic numbers and hence European digits are displayed.


<Page x:Class='WindowsApplication.Window1'
    Title='Code Sample' Height='300' Width='300'
      <TextBlock Language='ar-SA' 
         FlowDirection='RightToLeft'>????: 1+2=3
      <TextBlock Language='ar-SA' 
         NumberSubstitution.Substitution='European'>????: 1+2=3 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.