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

How to dispose a view?

$
0
0

As ContentView does not implement idisposable, should I do it in my view class instead?

// when user click button A

placeholder.Children.Clear ();

placeholder.Children.Add (new HomeView ());

// when user click button B

placeholder.Children.Clear ();

placeholder.Children.Add (new AnnouncementView ());


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>