/// <summary> /// Saves the image to picture album. /// </summary> /// <param name="content">The content.</param> /// <param name="title">The title.</param> /// <param name="width">The width.</param> /// <param name="height">The height.</param> public static void SaveImageToPictureAlbum(UIElement content, string title, int width, int height) { if (MessageBox.Show(AppResources.ConfirmToSavePictureToPhone, AppResources.AppName, MessageBoxButton.OKCancel) == MessageBoxResult.Cancel) return; try { content.SaveToPictureLiabray(StasticChartImageCacheFolder, "{0}.jpg".FormatWith(DateTime.Now.ToString("yyyyMMddHHmmss")), width, height); CommonExtensions.AlertNotification(null, AppResources.SaveImageToPictureHubSuccessMessage); } catch (Exception ex) { ex.AlertErrorMessage(AppResources.SaveStasticChartToLiabraryError); } }