We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using an expander with PageSlide ContentTransition slides the content in the wrong direction when closing the expander.
PageSlide ContentTransition
It looks like commit f13ece4 removed the !forward on Expander.cs line 107
Before... if (IsExpanded) { ContentTransition.Start(null, visualContent, forward); } else { ContentTransition.Start(visualContent, null, !forward); }
After... if (IsExpanded) { await ContentTransition.Start(null, visualContent, forward, _lastTransitionCts.Token); } else { await ContentTransition.Start(visualContent, null, forward, _lastTransitionCts.Token); }
<Style Selector="Expander"> <Setter Property="ContentTransition"> <Setter.Value> <PageSlide Orientation="Horizontal" Duration="0:0:0.25"/> </Setter.Value> </Setter> <Setter Property="ExpandDirection" Value="Right"/> </Style>
The expander content should slide right when opening the expander and back left when closing the expander.
11.2
Windows
No response
The text was updated successfully, but these errors were encountered:
@aguahombre yeah I think the ! Was removed by accident. Can you file a PR to add it back?
/cc @maxkatz6
Sorry, something went wrong.
If I get time next week, I can give the PR a go
Let me make one pr.
Successfully merging a pull request may close this issue.
Describe the bug
Using an expander with
PageSlide ContentTransition
slides the content in the wrong direction when closing the expander.It looks like commit f13ece4 removed the !forward on Expander.cs line 107
To Reproduce
Expected behavior
The expander content should slide right when opening the expander and back left when closing the expander.
Avalonia version
11.2
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: