Getting Started with Windows 8 development (17) file Selector File chooser folder selector

Source: Internet
Author: User
Tags save file

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.