MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

BUG: Missing Background styling in x:Type GridViewColumnHeader

Open
#2,643 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

The GridViewColumnHeader override the default style but not use the Background property in the Template. This prevents styling of the header's Background.

Please add the following:
Background={Template Binding Background}
to the HeaderBorder:
<Border Name="HeaderBorder" Padding="{TemplateBinding Padding}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
This solves the problem and allows Background changes to the GridViewColumnHeader.

Regards,
Christoph

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the XAML template for GridViewColumnHeader and inspect the HeaderBorder element. Apply the requested Background template binding there, then run the relevant project tests or UI checks to confirm that changing GridViewColumnHeader.Background affects the header.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.