Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]Add backing dependency property for DataGridColumn.Header #4945

Open
Qiu233 opened this issue Oct 17, 2023 · 1 comment
Open

[Feature]Add backing dependency property for DataGridColumn.Header #4945

Qiu233 opened this issue Oct 17, 2023 · 1 comment
Labels
feature request 📬 A request for new changes to improve functionality

Comments

@Qiu233
Copy link

Qiu233 commented Oct 17, 2023

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 Qiu233 added the feature request 📬 A request for new changes to improve functionality label Oct 17, 2023
@ghost
Copy link

ghost commented Oct 17, 2023

Hello, 'Qiu233! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 📬 A request for new changes to improve functionality
Projects
None yet
Development

No branches or pull requests

1 participant