Using common TextElement attached properties : Button « Windows Presentation Foundation « C# / C Sharp
- C# / C Sharp
- Windows Presentation Foundation
- Button
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>
Related examples in the same category