Mega Code Archive

 
Categories / C# / WPF
 

Use RenderTransform to transform a TextBlock

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel>   <Button>     <TextBlock>       this is a test     </TextBlock>   </Button>   <Button>     <TextBlock>       <TextBlock.RenderTransform>         <ScaleTransform ScaleX="3" ScaleY="3" />       </TextBlock.RenderTransform>       Foo bar     </TextBlock>   </Button> </StackPanel> </Page>