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

Support non-generic AvaloniaProperty in GetObservable(converter) #12160

Conversation

TomEdwardsEnscape
Copy link
Contributor

Fixes an oversight I made when adding converter methods to the GetObservable extension methods in #10824. None of the new methods were compatible with the non-generic AvaloniaProperty base type.

What is the updated/expected behavior with this PR?

You can now provide a converter that can be applied to all AvaloniaProperty objects. This is useful if you want to work with a shared base type of various properties, since you cannot cast (for example) an AvaloniaProperty<ListBox> object to AvaloniaProperty<ItemsControl>.

Breaking changes

None

Obsoletions / Deprecations

None

…perty and a converter to a typed value

Added missing docstrings for type params
@TomEdwardsEnscape TomEdwardsEnscape changed the title Add an overload for GetObservable that accepts an untyped AvaloniaPro… Support non-generic AvaloniaProperty in GetObservable(converter) Jul 12, 2023
@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0037653-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@TomEdwardsEnscape
Copy link
Contributor Author

Can someone re-run the integration tests?

@maxkatz6 maxkatz6 enabled auto-merge July 16, 2023 05:40
@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0037951-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 19, 2023
Merged via the queue into AvaloniaUI:master with commit 06afe81 Jul 19, 2023
@TomEdwardsEnscape TomEdwardsEnscape deleted the feature/untyped-property-observable-converter branch July 20, 2023 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants