WPF 实现DataGrid行鼠标经过、点击时的背景、文字、行高等样式
<datagrid.rowstyle >
<style targettype="datagridrow">
<style.triggers>
<trigger property="ismouseover" value="true">
<setter property="background" value="#fff1faff"/>
<setter property="fontsize" value=" 20"/>
<setter property="height" value="30"/>
<setter property="foreground" value="blue"/>
</trigger>
</style.triggers>
</style>www.2cto.com
</datagrid.rowstyle>
<datagrid.cellstyle >
<style targettype="datagridcell">
<style.triggers >
<trigger property="isselected" value="true">
<setter property="background" value="#fff1faff"/>
<setter property="fontsize" value=" 20"/>
<setter property="height" value="30"/>
<setter property="foreground" value="blue"/>
</trigger>
</style.triggers>
</style>
</datagrid.cellstyle>