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

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

            var fileToSave = await fileSavePicker.PickSaveFileAsync();

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