/// <summary> /// Loads a BitmapImage from a Base64-encoded string. /// </summary> /// <param name="img">The Base64-encoded image string.</param> /// <returns></returns> public static async Task<BitmapImage> LoadFromBase64StringAsync(string img) { var bm = new BitmapImage(); await bm.LoadFromBase64StringAsync(img); return bm; }