Home › Forums › WPF controls › Xceed DataGrid for WPF › How to restyle header section (where GroupByControl is)?
I am trying to restyle header section of the card view and I am getting strange results – Background property is ignored and GroupByControl and ColumnManagerRow controls are placed vertically instead of horizontally as by default. Here is the xaml:
<xcdg:CardView x:Key=”cardCardView”> <xcdg:CardView.FixedHeaders> <xcdg:ClearHeadersFooters/> <DataTemplate> <xcdg:GroupByControl Background=”Orange” /> </DataTemplate>
<DataTemplate> <xcdg:ColumnManagerRow AllowColumnReorder=”True” AllowSort=”True” /> </DataTemplate> </xcdg:CardView.FixedHeaders> </xcdg:CardView>
Am I not setting some flags properly to have them placed horizontally? And is there any other way to change background of the header section without modifying theme?
PS I am using version 1.2.
Imported from legacy forums. Posted by Vladimir (had 2297 views)
Recreating the default card-view header requires a little voodoo. That said, refer to the “Recreating the default card-view header” example in the documentation.
In some cases, property values will not be applied to a target element. These include, but are not limited to:
The element’s template does not have a binding for the specific property. The element’s template ignores the property value. The element’s template explicitly provides a value for the property.
Imported from legacy forums. Posted by Jenny [Xceed] (had 277 views)
Thank you, Jenny!
I have one more question – is there easy way to make ColumnManagerRow for CardView look like TableView one?
Imported from legacy forums. Posted by Vladimir (had 3446 views)