Mega Code Archive

 
Categories / C# / WPF
 

Using common TextElement attached properties

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Center" VerticalAlignment="Center" Width="160"> <Button TextElement.FontFamily="Parchment" TextElement.FontSize="80">   Cancel </Button> </Window>