title: Object disposing in Xamarin.Forms
body: <p>I'm looking for the right way to dispose objects in a Xamarin Forms application. Currently i'm using XAML and MVVM coding style. Then from my view model i get a reference to a disposable object through the builtin service locator (<a href="https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/dependency-service/" rel="noreferrer">DependencyService</a>). Ideally i should be able to call Dispose() on the objects from my view model, but other solutions like attaching to <a href="https://developer.xamarin.com/api/member/Xamarin.Forms.Page.OnDisappearing/" rel="noreferrer">ContentPage.OnDisappearing</a> and <a href="https://developer.xamarin.com/api/event/Xamarin.Forms.NavigationPage.Popped/" rel="noreferrer">NavigationPage.Popped</a> could be feasible.</p>