WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

[Feature]Add backing dependency property for DataGridColumn.Header

Open Qiu233 opened this issue 8 months ago • 1 comments

Describe the problem

For now, DataGridColumn.Header is just a thin wrapper over headerCell.Content = _header. When only values set, everything works fine. But when a binding is provided by some MarkupExtension, something like Microsoft.UI.Xaml.Binding is shown in the header rather than evaluated. Provided binding does work in other normal cases, and according to the source code, I guess this issue is because DataGridColumn.Header has no corresponding DependencyProperty.

Describe the solution

This could be solved by

  1. adding a dependency property for DataGridColumn.Header, and then
  2. headerCell having another binding its Content to this property.

Alternatives

No response

Additional info

No response

Help us help you

None

Qiu233 avatar Oct 17 '23 03:10 Qiu233