Hello, Welcome to Micorosoft Q&A,
How to save a file of user-defined format/extension?
As you mentioned above, FileSavePicker does not allow a wildcard extension, for this scenario, the better way is launch the FileSavePicker
with extension programmatic, you could package the FileSavePicker with extension parameter.
For example
private async Task<StorageFile> PickFileAsync(string extension)
{
var picker = new FileSavePicker();
picker.SuggestedStartLocation = PickerLocationId.Downloads;
picker.SuggestedFileName = "saved file";
picker.DefaultFileExtension = ".txt";
picker.FileTypeChoices.Add("file", new List<string> { extension });
var file = await picker.PickSaveFileAsync();
return file;
}
Usage
var file = await PickFileAsync(".pp");
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.