Hi!
I try to override the GridViewRow default style
I read all topics but redefine the template in DataRowStyle degrades performance on scrolling..
What's the good solution to hide de HighLight and the Selection background ??
It's my style (binding object contains the color property) :
I try to override the GridViewRow default style
I read all topics but redefine the template in DataRowStyle degrades performance on scrolling..
What's the good solution to hide de HighLight and the Selection background ??
It's my style (binding object contains the color property) :
<Style x:Key="GridRowStyle" TargetType="telerik:GridViewRow">
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsAlternating" Value="true" />
<Condition Property="IsSelected" Value="false" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGround2}" />
</MultiTrigger>
<!-- Mouse Over / Selectionné -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
<Condition Property="IsMouseOver" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundOverAndSelected}" />
</MultiTrigger>
<!-- Mouse Over -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundOver}" />
</MultiTrigger>
<!-- Selectionnée -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundSelected}" />
</MultiTrigger>
</Style.Triggers>
</Style>
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsAlternating" Value="true" />
<Condition Property="IsSelected" Value="false" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGround2}" />
</MultiTrigger>
<!-- Mouse Over / Selectionné -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
<Condition Property="IsMouseOver" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundOverAndSelected}" />
</MultiTrigger>
<!-- Mouse Over -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundOver}" />
</MultiTrigger>
<!-- Selectionnée -->
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background" Value="{Binding Path=RowBackGroundSelected}" />
</MultiTrigger>
</Style.Triggers>
</Style>