Exemple #1
0
        private async void ExportDictionaryButtonClick(object sender, RoutedEventArgs e)
        {
            var fileSavePicker = new FileSavePicker();

            fileSavePicker.FileTypeChoices.Add(".txt", new List <string> {
                ".txt"
            });
            fileSavePicker.SettingsIdentifier = "picker1";

            var fileToSave = await fileSavePicker.PickSaveFileAsync();

            if (fileToSave == null)
            {
                return;
            }
            WritePadAPI.exportUserDictionary(fileToSave.Path);
        }