I am trying to change the color of the group by header (the row that has the expansion indicator). How do I do this?
We decided to go with a different theme which supported a different color, so this is now a non-issue. thanks for checking up on the issue though.
Dave
Hello Dave,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you.
I have been looking into your reply and the xaml snippet seems to be exactly the one I had described. I cannot say what is preventing it in at your side, so I created a sample project to show you how the GroupByRow colour changes (Grid_GroupBy_Color.zip).
Please look through it and let me know if I can assist you any further on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
I tried and it did not change the color. I have pasted the area where I made the change and made the change bold/italics. Please look my change over and let me know if I am doing the change in the wrong place or if I am setting the background incorrectly. As a side note, I also tried changing the Stroke color which is listed in the <rectangle> located in the grid. This didn't have any affect either.
Change 1:
<!-- End Added 8/1/2006 GH -->
<!-- End Background Bar -->
<Border
x:Name="highlight"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Width="Auto"
Height="Auto"
CornerRadius="2,2,2,2"
Background="{DynamicResource {ComponentResourceKey {x:Type igDP:XamDataGrid}, LabelHighlight}}">
<Grid Margin="0,0,0,0" Width="Auto" Height="Auto" Background="White">
<Rectangle
Stroke="#44000000"
StrokeThickness="1"
RadiusX="1.55015910897703"
RadiusY="1.55015910897703"
Fill="Transparent"/>
Margin="1"
Stroke="#44FFFFFF"
RadiusX="0.550159108977027"
RadiusY="0.550159108977027"
</Grid>
I have been investigating your issue and despite that this cannot be done using the built-in functionality I have found a way for you to achieve your goal by retemplating the GroupByRecordPresenter. What you can do is get the original template from the DefaultStyles folder (default install path: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.2\WPF\DefaultStyles ) from the DataPresenterGeneric_Express.xaml . Inside the template you can set the Background property of the Grid which is placed inside the x:Name="highlight" Border.
Hope this helps. Please let me know if you require any further assistance on the matter.