日期:2014-05-17 浏览次数:21024 次
<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>