Mega Code Archive

 
Categories / C# Tutorial / WPF
 

Using common TextElement attached properties to set Button text

<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>