日期:2014-05-17 浏览次数:21040 次
<DataGridTextColumn Header="年龄" Binding="{Binding Path=Age}" >
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock">
<Setter Property="Background" Value="YellowGreen" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
<Style TargetType="TextBlock">
<Setter Property="Background" Value="YellowGreen" />
<Setter Property="Margin" Value="-1"></Setter>
</Style>