locked
How i can Add more Filter in FilePicker for Windows 8?

    Question

  •      FileTypeFilter = { ".jpg" }
               

    Thursday, August 28, 2014 7:15 PM

Answers

  •  

    There Are Two Ways to Add File Type Filter Either to Add along Types Along these or To use an Add keyword

         FileTypeFilter = { ".jpg", ".png", ".bmp", ".gif", ".tif" }
               

    OR

    openPicker.FileTypeFilter.Add(".jpg");
    openPicker.FileTypeFilter.Add(".jpeg");
    openPicker.FileTypeFilter.Add(".png");
    openPicker.FileTypeFilter.Add(".rar");
    openPicker.FileTypeFilter.Add(".txt");

    Thursday, August 28, 2014 7:20 PM

All replies

  •  

    There Are Two Ways to Add File Type Filter Either to Add along Types Along these or To use an Add keyword

         FileTypeFilter = { ".jpg", ".png", ".bmp", ".gif", ".tif" }
               

    OR

    openPicker.FileTypeFilter.Add(".jpg");
    openPicker.FileTypeFilter.Add(".jpeg");
    openPicker.FileTypeFilter.Add(".png");
    openPicker.FileTypeFilter.Add(".rar");
    openPicker.FileTypeFilter.Add(".txt");

    Thursday, August 28, 2014 7:20 PM
  • Thanks It works
    Thursday, August 28, 2014 7:21 PM