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

Implicit Composition Animations fail to run when animating a previously animated property #10716

Open
emmauss opened this issue Mar 20, 2023 · 2 comments

Comments

@emmauss
Copy link
Contributor

emmauss commented Mar 20, 2023

Describe the bug
Implicit composition animations fail to run after already running an animation on a property, if that property's modified again. The animation starts to work after another change to that property, and the issue no longer appears until the control is removed and added back to the visual tree.
An example where this occurs is when you have an implicit Offset animation on a control that's in a ScrollViewer. If the control is large enough to be scrollable, changing the Offset from 0 to 100 properly animates the Scrolling. Changing the Offset again, to 0 for example, will not animate the Scrolling. Internally, the Scroll Offset has the correct value, but if there's virtualization on the content, the scrolled to content will not render. Changing the Offset again will fix the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Easily reproducible sample can be found here, in the Tab Layout sample https://github.com/AvaloniaUI/Avalonia.Labs/tree/main/samples/Avalonia.Labs.Catalog
  2. Run the sample and go to Tab Layout
  3. Switch to Page 2, and then back
  4. Page 1 doesn't render, until you go to Page 2 again then back

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Avalonia.Labs.Catalog.2023-03-20.11-13-44.mp4

Desktop (please complete the following information):

  • OS: [e.g. Windows, Mac, Linux (State distribution)]
  • Version: master as of cbbc27f

Additional context
Add any other context about the problem here.

@emmauss emmauss added the bug label Mar 20, 2023
@emmauss
Copy link
Contributor Author

emmauss commented Mar 20, 2023

Related issue - AvaloniaUI/Avalonia.Labs#5

@amwx
Copy link
Contributor

amwx commented Mar 20, 2023

I wonder if this is similar to my issue in #9105 (Issue # 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants