async void OnSave(object sender, Windows.UI.Xaml.RoutedEventArgs e) { // We don't want to save an empty file if (inkManager.GetStrokes().Count > 0) { var savePicker = new Windows.Storage.Pickers.FileSavePicker(); savePicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.PicturesLibrary; savePicker.FileTypeChoices.Add("Gif with embedded ISF", new System.Collections.Generic.List <string> { ".gif" }); Windows.Storage.StorageFile file = await savePicker.PickSaveFileAsync(); if (null != file) { using (var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite)) { await inkManager.SaveAsync(stream); rootPage.NotifyUser(inkManager.GetStrokes().Count + " strokes saved!", SDKTemplate.NotifyType.StatusMessage); } } } else { rootPage.NotifyUser("There is no ink to save.", SDKTemplate.NotifyType.ErrorMessage); } }