BP122: Optimize image resources

Whenever you are using images, dispose them when you no longer require them. Page.Appearing and Page.Disappearing events are good candidates to create and dispose resources on-demand just for the time they are needed.

When you use ImageSource.FromUri, cache the retrieved image using the UriImageSource.CachingEnabled property.

Comments

No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play