-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ProgressBar IsIndeterminate memory leak #12922
Comments
Duplicate of #2881 |
@timunie I don't see how this is the same issue. The other ticket is referring to an animation of the Value property causing memory to grow. My issue is that the tree gets rooted even when detached from the tree, which is different. |
I thought it's the same root cause -> Animation is leaking. But I can reopen if you feel it is a different root cause. @jmacato may know more |
Yes, definitely different in my opinion. I don't think this is a ProgressBar only issue either, as all animations should be torn down once its associated control is removed from the visual tree, and then recreated again if the control gets re-added to the visual tree. |
exactly. general animation issue. |
Describe the bug
Having a ProgressBar with IsIndeterminate="True" causes it and the visual tree to be rooted in animation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The ProgressBar is no longer rooted and can be garbage collected.
My workaround was to associate a Behavior on the ProgressBar that sets IsIndeterminate to false when OnDetachedFromVisualTree occurs.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: