/// <summary> /// Loads a BitmapImage asynchronously given a specific folder and file name. /// </summary> /// <param name="folder">The folder.</param> /// <param name="fileName">Name of the file.</param> /// <returns></returns> public static async Task<BitmapImage> LoadAsync(StorageFolder folder, string fileName) { BitmapImage bitmap = new BitmapImage(); if (await folder.ContainsFileAsync(fileName)) { var file = await folder.GetFileByPathAsync(fileName); return await bitmap.SetSourceAsync(file); } return null; }