Hi,
I am trying to style the row selectors on a XamGrid. However the style (just setting the background color) is not being applied to the alternate rows. Am I missing something? I do not see any properties having to do with the alternate row styles. Below is the Xaml
<ig:XamGrid x:Name="grdFormatter" ItemsSource="{Binding parserObject}" AutoGenerateColumns="True" MaxHeight="400"> <ig:XamGrid.ColumnMovingSettings> <ig:ColumnMovingSettings AllowColumnMoving="Disabled"/> </ig:XamGrid.ColumnMovingSettings> <ig:XamGrid.HeaderStyle> <Style TargetType="igPrim:HeaderCellControl"> <Setter Property="Background" Value="Green"/> <Setter Property="Foreground" Value="White"/> </Style> </ig:XamGrid.HeaderStyle> <ig:XamGrid.RowSelectorSettings> <ig:RowSelectorSettings Visibility="Visible" EnableRowNumbering="True" RowNumberingSeed="1"> <ig:RowSelectorSettings.Style> <Style TargetType="igPrim:RowSelectorCellControl"> <Setter Property="Background" Value="Green"/> </Style> </ig:RowSelectorSettings.Style> </ig:RowSelectorSettings> </ig:XamGrid.RowSelectorSettings> <ig:XamGrid.SelectionSettings> <ig:SelectionSettings CellSelection="Multiple" RowSelection="Single" /> </ig:XamGrid.SelectionSettings> </ig:XamGrid>
Thanks,
Bill
There isn't a direct property that will change the Alternate Row Background on the RowSelector. You would have to retemplate the RowSelectorCellControl to change the VisualState.
This is discussed in the following forum post.
http://community.infragistics.com/forums/p/30703/169472.aspx#169472