Hi I am trying to style a DataGrid, and would like the selected rows to have a radial gradient as background. But instead of the radial to cover the whole of the selected row, the gradient is just repeated for each cell. Lets say my radial brush looks like a sundown I would like one sundown per selected row, not per cell in the selected row.
I use the following style definitions:
<Style x:Key="MTT_RowStyle" TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="{StaticResource MTT_BlueRadialBrush}" />
<Setter Property="Foreground" Value="White"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="MTT_CellStyle" TargetType="{x:Type DataGridCell}">
<Setter Property="Background" Value="Transparent"/>
</Style>
I hope I have put it clear enough, and would like any suggestions. Thanks