Home Forums WPF controls Xceed DataGrid for WPF How to restyle header section (where GroupByControl is)?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25694 |

    Hello,

    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?

    Thank you!

    PS I am using version 1.2.

    Imported from legacy forums. Posted by Vladimir (had 2297 views)

    Xceed Support
    Member
    Post count: 5658

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.