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

Add a DataType property on CompiledBindingExtension to enable specifying the start type explicitly on a binding. #7248

Merged

Conversation

jkoritzinsky
Copy link
Collaborator

What does the pull request do?

This PR adds a DataType property to the CompiledBindingExtension type to allow people to specify the starting data type for a compiled binding directly on the binding object itself.

What is the current behavior?

The binding start type is always inferred from the surrounding data context.

What is the updated/expected behavior with this PR?

Users can override the starting type for scenarios where the implicit inference is wrong.

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

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

Fixes #6158

@maxkatz6 maxkatz6 merged commit 21faa59 into AvaloniaUI:master Dec 22, 2021
danwalmsley pushed a commit that referenced this pull request Jan 24, 2022
…n-binding

Add a DataType property on CompiledBindingExtension to enable specifying the start type explicitly on a binding.
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.

Allow to specify x:DataType on {CompiledBinding ...} expression
4 participants