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

fix: Make DataGridColumn.Header and .HeaderTemplate a DirectProperty #7094

Merged

Conversation

timunie
Copy link
Contributor

@timunie timunie commented Dec 7, 2021

What does the pull request do?

Change Header and HeaderTemplate to be a DirectProperty

What is the current behavior?

Both Properties are "normal" Propeties, so no Binding is supported

What is the updated/expected behavior with this PR?

Allow both Properties to be bindable

How was the solution implemented (if it's not obvious)?

Changed the properties to be a DirectProperty

Checklist

Breaking changes

None

Obsoletions / Deprecations

None

Fixed issues

Fixes #7093

this enables Binding and DynamicResource usage
@maxkatz6
Copy link
Member

maxkatz6 commented Dec 7, 2021

Hm, didn't thought that binding is useful here. But dynamic resource definitely is.

@timunie
Copy link
Contributor Author

timunie commented Dec 7, 2021

@maxkatz6 Binding is useful if you want to change the Header based on a Language which may change during runtime. At least for me it would be useful

@maxkatz6 maxkatz6 enabled auto-merge December 7, 2021 13:10
@maxkatz6 maxkatz6 merged commit 721b7dc into AvaloniaUI:master Dec 7, 2021
danwalmsley pushed a commit that referenced this pull request Dec 7, 2021
…perty

fix: Make DataGridColumn.Header and .HeaderTemplate a DirectProperty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataGridColumnHeader cannot be used with Binding or DynamicResource
3 participants