Page Dialog Service - Best Practices for Resource Cleanup?
Are there any suggested steps / best practices for working with the Page Dialog Service? For example please consider this notice from the XF documentation. "When using the ProgressDialog class (or any Dialog or Alert), instead of calling the Hide method when you're done with the dialog, you must call Dismiss. Otherwise, the dialog will still be alive and will leak the Activity by holding a reference to it."
If I am using the service from the View Model and it is getting the service injected from the container I am assuming the container takes care of cleaning up the resource. However looking at the examples I see they are all or mostly executed from the code behind. With the understanding that its just an example I have to assume that there might be some code left out of the picture like cleaning up the event handlers, etc. What I would like to know is if there are any methods like Dismiss that is mentioned above that I need to implement to manually break any references between the view and the dialog service.
Thank You, Bill Spaulding
You don't have to worry about resource clean up. The docs you are referring to aren't the XF docs. Here is the XF docs regarding DisplayAlert an DisplayActionsheet
http://developer.xamarin.com/guides/cross-platform/xamarin-forms/user-interface/navigation/pop-ups/
Thank you for that clarification.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.