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

Updated Transition to use direct properties via use of new TransitionBase class #12716

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

billhenn
Copy link
Contributor

What does the pull request do?

Updates the generic Transition class to use direct properties instead of plain CLR properties.

What is the current behavior?

CLR properties were used before, which didn't allow bindings. Bindings are necessary to properly support some features we want to implement. The Animation class already uses direct properties similar to the changes this PR makes.

What is the updated/expected behavior with this PR?

The properties now are direct properties, which do allow bindings.

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

Per @kekekeks advice, created a non-generic TransitionBase class to define the direct properties since they can't be defined on a generic type. Updated Transition to inherit TransitionBase.

Checklist

Breaking changes

Everything using Transition types should continue working as-is. These were just backend property implementation changes.

Obsoletions / Deprecations

None

Fixed issues

None

@avaloniaui-team
Copy link
Contributor

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

@jmacato jmacato added this pull request to the merge queue Aug 30, 2023
Merged via the queue into AvaloniaUI:master with commit 57236c0 Aug 30, 2023
5 checks passed
@grokys grokys added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Sep 29, 2023
grokys pushed a commit that referenced this pull request Oct 2, 2023
Updated Transition to use direct properties via use of new TransitionBase class
@grokys grokys added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Oct 14, 2023
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.

4 participants