Skip to main content
Home Forums Silverlight Design Designing with Silverlight Hot to access RowGroupHeaderStyles in Expression Blend
2 replies. Latest Post by EisenB on November 6, 2009.
(0)
EisenB
Member
59 points
89 Posts
11-01-2009 12:07 PM |
I would like to style the DataGrid grouping but I can't seem to find the RowGroupHeaderStyles in Expression Blend. Usually I right click the DataGrid or a DataGridColumn and then go to edit template but I dont see anything for RowGroupHeaderStyles. Any ideas?
Thanks
Min-Hong...
Contributor
3619 points
412 Posts
11-04-2009 10:25 PM |
Hi,
Yes, the rowGroupHeaderStyle is not in the default template,maybe because normally it's not visible. It seems that you have to do it in xaml or c# way.
Here is an example.
<data:DataGrid.RowGroupHeaderStyles> <!-- Style for groups at top level --> <Style TargetType="data:DataGridRowGroupHeader"> <Setter Property="PropertyNameVisibility" Value="Collapsed" /> <Setter Property="Background" Value="#FF112255" /> <Setter Property="Foreground" Value="#FFEEEEEE" /> <Setter Property="SublevelIndent" Value="15" /> </Style> </data:DataGrid.RowGroupHeaderStyles>
For more information , you can check here:
http://msdn.microsoft.com/en-us/library/dd833072(VS.95).aspx
Best Regards
11-06-2009 11:40 AM |
Thanks, I also found what seems to be the verbose default template here:
http://stackoverflow.com/questions/1107849/silverlight-3-beta-datagrid-grouping