-
-
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
Canvas is not clearing children correctly on current master #3019
Comments
Could you provide a small repro case? |
https://github.com/HendrikMennen/CanvasRepro However it shows that there seems to be something wrong with Canvas.Children.Clear(), since the Canvas is not cleared anymore in the second picture |
the dirty rects don't appear to be correctly updated on removing items. |
removing this line
|
In debugging this the |
When you clear a control's children should that invalidate the region that is covered by the control? BTW it is not wise to clear a control's children just to add most of its previous children again. Better try work with existing items (object pooling). |
The Canvas takes about 5-10 times longer on current master to update than it did before.
Ram usage is about the same.
It also appears to not remove it's children correctly anymore while calling canvas.children.Clear()
before
0.8.999-cibuild0004086-beta
after
0.8.999-cibuild0004126-beta
The text was updated successfully, but these errors were encountered: