Skip to content

Most entries in the FileOpenPicker file type list are blank #5837

Closed

Description

@lhak

Describe the bug

All entries in file type selection list in the FileOpenPicker are blank except the "All files" entry.

Image

Steps to reproduce the bug

  1. Create a file picker according to the documentation.

Expected behavior

No response

Screenshots

No response

NuGet package version

Windows App SDK 1.8.0: 1.8.250907003

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

IDE

Visual Studio 2022

Additional context

No response

Activity

  1. added
    area-File accessTopics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.
    on Sep 22, 2025
  2. DinahK-2SO commented on Oct 10, 2025

    @DinahK-2SO
    Contributor

    Hi lhak, Thank you for reporting this issue! To help us better understand and assist, could you please provide the following details:

    1. Code snippet
    2. System language – What is the language setting of your operating system?
    3. Encoding – What encoding are you using in your code? Also, what encoding are you using in your system?
    4. Although it is not displayed, does the Filtering function work?

    We really appreciate for any information to help investigation!

  3. lhak commented on Oct 12, 2025

    @lhak
    Author

    Hi @lhak, Thank you for reporting this issue! To help us better understand and assist, could you please provide the following details:

    1. Code snippet

    I created a c# winui project (packaged) with Visual Studio 2022 and used the c# code from the documentation

    1. System language – What is the language setting of your operating system?

    german or english. Both show the same issue.

    1. Encoding – What encoding are you using in your code? Also, what encoding are you using in your system?

    The file where I added the code (MainWindow.xaml.cs) was created by the appsdk template. Format is "Windows 1252".

    1. Although it is not displayed, does the Filtering function work?> > We really appreciate for any information to help investigation!

    Yes, filtering works as expected even though the descripts are not shown

  4. DinahK-2SO commented on Oct 13, 2025

    @DinahK-2SO
    Contributor
    1. Although it is not displayed, does the Filtering function work?> > We really appreciate for any information to help investigation!

    Yes, filtering works as expected even though the descripts are not shown

    Thanks lhak , It looks like the content inside brackets might not be rendering properly in your app. Could you try one more thing? Please open any file in Notepad, then go to "File > Save As.", in the dialog opened, do you see the wildcards displayed within the brackets in the file type filters?

    Image Image
  5. lhak commented on Oct 13, 2025

    @lhak
    Author

    Yes, all other applications (and using the pickers from the Windows.Storage.Pickers namespace) work fine. I also tested on numerous machines and see the same issue on all of them.

  6. lhak commented on Nov 13, 2025

    @lhak
    Author

    This is still broken in the latest 1.8 and 2.0 experimental results. When will it be fixed?

  7. DinahK-2SO commented on Nov 13, 2025

    @DinahK-2SO
    Contributor

    Hi lhak , Thanks for sharing this issue. I wasn’t able to reproduce it on my machine, but I’ll set up a VM to test further and see if we can identify what’s happening. I’ll post an update here.

  8. lhak commented on Nov 14, 2025

    @lhak
    Author
  9. DinahK-2SO commented on Nov 16, 2025

    @DinahK-2SO
    Contributor

    Hi lhak , thanks for your prompt response!

    1. The code you found aims to hide the label part before parentheses, meanwhile, the content in parentheses should display the filter, as shown in the screenshot below.
    Image

    Because the one in parentheses is the actual active part, we hid the part before it to avoid showing duplicate content. However, it seems the parentheses are not displayed on your side, so I am wondering if hiding the first part was a good choice.

    1. To quickly unblock your progress,

    the FileOpenPicker.FileTypeChoices in 2.0-experimental2 can be a mitigation, it allows us to customize both the label and filters.

  10. DinahK-2SO commented on Nov 16, 2025

    @DinahK-2SO
    Contributor

    Oh I know what happend! The file name extension is not shown on your side!

    Hey lhak , would you please enable this? You will see the extensions in brackets then.

    Image

    And NICE Catch! This is indeed a subtle bug. I will add the label back to FileTypeFilters!

  11. lhak commented on Nov 16, 2025

    @lhak
    Author

    Dinah Xiaoman G (@DinahK-2SO) Yes, I can confirm that this is indeed the issue and toggling that option shows the labels

  12. DinahK-2SO commented on Feb 12, 2026

    @DinahK-2SO
    Contributor

    Hi lhak , thanks for reporting this issue! The fixed is released in WinAppSDK >=1.8.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-File accessTopics related to Microsoft.Windows.Storage.Pickers APIs for selecting files/folders etc.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions