Why does this transition not animate when reverting back to the original value? #15125
Unanswered
andrewkdci
asked this question in
Q&A
Replies: 1 comment
-
Interesting. So if I change the range of the RenderTransform transition like so:
then I get a very short transition that travels only from 228 to 100 px: So, am I correct if I say that these two styles are like setting the
Can anyone confirm this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I asked a question not too long ago, #15086, that was tangentially about asymmetric transitions, i.e. the transition is animated when it is applied, but then instantaneous when it's reverted back to it original value. Here is the basic XAML that I was playing with:
(Note that
IsVisible
is alwaysTrue
, which was for testing purposes. Originally I had it bound toHasContent
.)And this is what it looks like in action:
This is great. It works how I want it to, namely that there is a smooth animation when the menu slides out from the right, and then an instantaneous transition when it slides back to the right.
What I don't understand is why the second transition, when it goes back to
translateX(528px)
, is instantaneous? What in my XAML says "apply the transition animation to<Style Selector="Border.hasContent">
but not to the base<Style Selector="Border">
?"Beta Was this translation helpful? Give feedback.
All reactions