Closed jevansAN closed 5 years ago
OK, in case it's any help let me offer a solution. It took some time. Let's say the file type is txt and we've declared the FileSavePicker. The key is to use Collections:
hstring fileExtension = to_hstring(L".txt");
Windows::Foundation::Collections::IVector
Hi @jevansAN, thanks for the feedback and your example. I'm going to update the document to include an example very similar to the one you've shared. Looks like you're on the right track already with your code. The new content should show up next week.
Could you show an example of how to provide the filetypechoices in C++/winrt?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.