Click here to Skip to main content
15,901,666 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can i change font size of RichTextBlock from Code behind when multiple span are placed inside open close of RichTextBlock
Ex.

XML
<RichTextBlock x:Name="test3" FontSize="10">
               <Paragraph>
                   <Span x:Name="Test1" FontSize="10" >Some Text....</Span>
                   <Span x:Name="Tsp2" FontSize="10" >Some Text....</Span>
                   <Span x:Name="Tsp3" FontSize="10" >Some Text....</Span>
               </Paragraph>
 </RichTextBlock


i want to change Fontsize 10 to 15
Posted
Updated 24-May-13 3:25am
v2

1 solution

HTML
<richtextblock x:name="test3" xmlns:x="#unknown">
               <paragraph FontSize="13.333" FontFamily="Arial">
                   <span x:name="Tsp1">Some Text....</span>
                   <span x:name="Tsp2">Some Text....</span>
                   <span x:name="Tsp3">Some Text....</span>
               </paragraph>
 </richtextblock>

Happy Coding!
:)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900