Why does my animation task duplicate when I change my axaml? #19266
Unanswered
Shadowblitz16
asked this question in
Q&A
Replies: 2 comments 1 reply
-
https://stackoverflow.com/questions/34683948/better-solution-for-timer-in-viewmodel |
Beta Was this translation helpful? Give feedback.
0 replies
-
This will not answer directly your question, sorry about that, but I think you are on the wrong track for your sprite rendering system. You should possibly consider using "CroppedBitmap"s and take a look at this project, here: HTH |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Every time I change my axaml I get another
Draw!
printing and the old one doesn't stop.This means everytime I update my axaml it alocates a new animation task and the old one isn't canceled.
I am using rider 2025.1.3.
The worker class was my last attempt to fix it before I posted here.
I was using a private Dispose method and the finalizer of Sprite to cancel the task, but again same issue.
Beta Was this translation helpful? Give feedback.
All reactions