DataGrid DataGridTextColumn 樣式

<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock" >
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="Yellow" />
</Style>
</DataGridTextColumn.ElementStyle>
<DataGridTextColumn.EditingElementStyle>
<Style TargetType="TextBox" >
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="Yellow" />
</Style>
</DataGridTextColumn.EditingElementStyle>

posted @ 2015-04-02 09:31  欣欣点灯  阅读(308)  评论(0编辑  收藏  举报