Hi
wanted to know how I can get the style of the selection and the mouse
over a row that I have configured TreeListView with two colors of
different rows, one for parent nodes and another for children.This is the code:
public class RowStyleSelector : StyleSelector
{
public override Style SelectStyle(object item, DependencyObject container)
{
if (item is Group)
return Application.Current.Resources["GroupRowStyle"] as Style;
else
return Application.Current.Resources["GroupRowStyleNew"] as Style;
}
}
<Application.Resources>
<Style x:Key="GroupRowStyle" TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="#FF000000"/>
</Style>
<Style x:Key="GroupRowStyleNew" TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="#FF262626"/>
</Style>
</Application.Resources>
public class RowStyleSelector : StyleSelector
{
public override Style SelectStyle(object item, DependencyObject container)
{
if (item is Group)
return Application.Current.Resources["GroupRowStyle"] as Style;
else
return Application.Current.Resources["GroupRowStyleNew"] as Style;
}
}
<Application.Resources>
<Style x:Key="GroupRowStyle" TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="#FF000000"/>
</Style>
<Style x:Key="GroupRowStyleNew" TargetType="telerik:GridViewRow">
<Setter Property="Background" Value="#FF262626"/>
</Style>
</Application.Resources>