Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

StackLayout memory leak?

$
0
0

Hi,

If I create a StackLayout and add items to it, then use Clear(), it seems to slow down the entire application significantly after a few hundred iterations of this.

MyStackLayout.Children.Add(MyLabel);
MyStackLayout.Children.Add(MyBoxView);
MyStackLayout.Children.Add(MyButton);
MyStackLayout.Children.Clear();

What's the best way to do this? Is this a bug?


Viewing all articles
Browse latest Browse all 58056

Trending Articles