Hi,
I would like to change the CellStyle;
However, in the case I have, on grid's right hand side after all available columns, I see empty space with the default grid CellStyle... (please see the picture attached)
How can I change this?
Thanks
You can use an implicit style (see "Implicit Styles" in Remarks - msdn). Setting implicit style,like in the code below, will affect all CellControls:
<ig:XamGrid> <ig:XamGrid.Resources> <Style TargetType="ig:CellControl"> <Setter Property="Background" Value="Gold" /> </Style> </ig:XamGrid.Resources> ...
HTH
Hi
Thanks for the prompt answer;
Yes, that solves the problem, however not in the case I need it:
I am using the XamGrid control on a separate UserControl that exposes few DependencyProperties (i.e. setting the style, filtering options, etc...)
Now, this control is widely used through-out whole application
So, the point is:
Not all grids need to have the same style !
Whenever I want to speciffically appoint a style to the grid, I do via the UserControl that encapsulates the XamGrid, like this:
<controls:MyCustomXamGrid SetCustomStyle={StaticResource xxxx}/>
The passed style I connect with the XamGridCellStyle
How can this structure cope with the Implicit Styles or if not, with what?
In this case set FillerColumnSettings.Style the way you are setting XamGrid.CellStyle
<ig:XamGrid CellStyle="{StaticResource MyCustomStyle}"> <ig:XamGrid.FillerColumnSettings> <ig:FillerColumnSettings Style="{StaticResource MyCustomStyle}" /> </ig:XamGrid.FillerColumnSettings> ...
Anyone?