Live Chat Icon For mobile
Live Chat Icon

WPF FAQ - Attributes

Find answers for the most frequently asked questions
Expand All Collapse All

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

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

Please submit your question and answer.