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
Allow TransitioningContentControl to be reversed. #13003
Conversation
You can test this PR using the following package version. |
You can test this PR using the following package version. |
@dotnet-policy-service agree |
You can test this PR using the following package version. |
You can test this PR using the following package version. |
samples/ControlCatalog/ViewModels/TransitioningContentControlPageViewModel.cs
Outdated
Show resolved
Hide resolved
You can test this PR using the following package version. |
…ageViewModel.cs Co-authored-by: Max Katz <maxkatz6@outlook.com>
Thank you! |
* Allow TransitioningContentControl to be reversed. (#12442) * Fix incorrect property name. * Add missing pseudoclass attribute. * Remove reversed transition pseudo class as discussed in review. * Update samples/ControlCatalog/ViewModels/TransitioningContentControlPageViewModel.cs Co-authored-by: Max Katz <maxkatz6@outlook.com> --------- Co-authored-by: Max Katz <maxkatz6@outlook.com>
What does the pull request do?
Adds the ability to set a boolean property on TransitioningContentControl that will reverse the transition direction.
What is the current behavior?
The transition always goes "forward".
What is the updated/expected behavior with this PR?
The transition will animate in the opposite direction if the IsTransitionReversed property is true. The ":reversed" pseudoclass is also set on the control. Also, the ControlCatalog was updated to reflect the changes. (Will have no visual effect on CrossFade transition.)
How was the solution implemented (if it's not obvious)?
It's pretty obvious.
Checklist
Breaking changes
None
Obsoletions / Deprecations
None
Fixed issues
#12442