Closed aguahombre closed 3 weeks ago
Using an expander with PageSlide ContentTransition slides the content in the wrong direction when closing the expander.
PageSlide ContentTransition
It looks like commit f13ece461b43306c8f9c2680662e649c265b1e07 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
@aguahombre yeah I think the ! Was removed by accident. Can you file a PR to add it back?
/cc @maxkatz6
If I get time next week, I can give the PR a go
Let me make one pr.
Describe the bug
Using an expander with
PageSlide ContentTransition
slides the content in the wrong direction when closing the expander.It looks like commit f13ece461b43306c8f9c2680662e649c265b1e07 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