WindowsCommunityToolkit
WindowsCommunityToolkit copied to clipboard
[Feature]Add backing dependency property for DataGridColumn.Header
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
- adding a dependency property for
DataGridColumn.Header
, and then -
headerCell
having another binding itsContent
to this property.
Alternatives
No response
Additional info
No response
Help us help you
None