I am working on a Xamarin.Forms application,

Inside one of my Page, I have multiple custom StackLayout (ActivityTypeView) containing an Image. These StackLayout are created and added dynamicaly inside a Grid in my Page.

Inside my ActivityTypeView I set the Image source as follow:

```
WorkIcon.Source = ImageSource.FromFile("disable.png");

```

(My image is saved inside my drawable folder)

The problem is that when I go to another Page and come back multiple time, I always end up at some point with an OutOfMemory Exception when trying to load the image.

I think somehow my ImageSource is not destroyed/Disposed when I change Page. So it will always, after I reload the same page multiple time, end up with this error.

I would like to know how to handle this situation. How can I dispose the ressource properly and when?