I have a WPF Telerik RadGrid View in which a row should have different colors based on a boolean. I was able to do this using data triggers, but the problem is that I could not turn off the mouse and select the effects in the line. As a result, despite the fact that a certain line has a different color due to the logical value, when the mouse moves or when a row is selected, it gets the selected / mouse over the color effect. Is there a way to disable the mouse and selected properties for a specific row? Setting the IsSelected and Focusable properties to false also makes no difference. Style and data triggers are as follows:
<Style x:Key="RadRowStyle" TargetType="{x:Type telerik:GridViewRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding ABC}" Value="True">
<Setter Property="Background" Value="Blue"/>
<Setter Property="IsSelected" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</DataTrigger>
<DataTrigger Binding="{Binding ABC}" Value="false">
<Setter Property="Background" Value="Transparent"/>
</DataTrigger>
</Style.Triggers>
</Style>
source
share