/// <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> LoadFromBase64String(string img) { var bm = new BitmapImage(); await bm.LoadFromBase64String(img); return bm; }