The file selector in Windows 8 is quite different from the previous versions of Windows, and this article will explain how to use the Windows file selector for single and multiple files, and also to look at the file and folder selectors.
Before that, we need to know the classes used by these three selectors in Windows 8 are as follows:
File selector: Fileopenpicker
Common Properties and methods: The initial position of the suggestedstartlocation-selector
commitbuttontext-the text of the Submit button
filetypefilter-sets the file types you can choose
viewmode-browse Mode: Thumbnail and file list two modes
Picksinglefileasync ()-How to select a single file
Pickmultiplefilesasync ()-How to select multiple files
File Save: Filesavepicker
Common Properties and methods: The initial position of the suggestedstartlocation-selector
commitbuttontext-the text of the Submit button
suggestedfilename-Default Save file name
defaultfileextension-Default File type
filetypechoices-set selectable file type combinations
Picksavefileasync ()-How to save a file
File selector: Folderopenpicker
Common Properties and methods: The initial position of the suggestedstartlocation-selector
commitbuttontext-the text of the Submit button
filetypefilter-sets the file types you can choose
viewmode-browse Mode: Thumbnail and file list two modes
Picksinglefolderasync ()-How to select a single file