日期:2014-05-17 浏览次数:20714 次
<Window.Resources>
<Button x:Key="aa" Background="Red"/>
</Window.Resources>
<Grid>
</Grid>
<Window.Resources>
<!--<Button x:Key="aa" Background="Red" -->
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="Red"></Setter>
</Style>
</Window.Resources>
<Grid>
<Button Content="Test" ></Button>
</Grid>