Mega Code Archive

 
Categories / VB.Net / WPF
 

Implicit use of a Style

<Window x:Class="WpfApplication1.Window1"   Title="Resources"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">   <Window.Resources>     <Style TargetType="{x:Type Button}">       <Setter Property="Button.FontSize" Value="36" />     </Style>   </Window.Resources>   <Grid>     <Button>Hello</Button>   </Grid> </Window>