//Always call in the UI thread private void EmptyImage() { //empty the previous image data rawImage = null; ImageBoxPlain.Source = null; CropUI.SetThumbAsync(null); //empty the image display ImageBox.Source = null; //empty the exif data History?.Clear(); ExifSource.Source = null; //empty the histogram ControlVisibilty.Value = false; ResetControls(); DisplayImage(null, false); ; Histo.ClearAsync(); GC.Collect(); }