Windows 8 utility tip series: 18. Windows 8 Development simulator and associated file types in Windows 8 programs

Source: Internet
Author: User

This article will explain two things: 1. Use of the Windows 8 Development simulator. 2.ProgramSet the associated file type.

I. Use of the Windows 8 Development Simulator

1. In vs2012, we have a Windows 8 Development simulator. we can select the debug button on the vs interface from the "local calculator" to the "simulater" simulator, as shown in:

2. Click "Simulator" to bring up the following interface:

3. At this time, we can see that the simulator has many buttons on it to simulate single-point touch, multi-point touch, rotating devices and other operations. Here we can preview most of the effects of the developed applications on a standard Windows 8 tablet device. For more information, see msdn connection: http://msdn.microsoft.com/library/windows/apps/hh441475.aspx

2. Set the associated file type in the program

1. During Windows 8 development, we may customize files with the extension, which can only be opened by this program, and change the associated logo of this type of file to the logo of this program. We need to open the package. appxmanifest file, then, "declare" --> Find "available Declaration" --> select "file type association" --> Add "file type association" --> set "logo" to custom logo and the following properties and supported file types include:

2. After the configuration is complete, run the ghost program to automatically associate the. caleungsuffix and. jpg suffix files. You can change any file to the. caleung suffix to get the following results:

3.for example, A. jpg extension file is associated with multiple programs. Click the. jpg extension file by clicking the right button of the mouse, and then click "open mode" --> to find the options for this program to open this file. For example:

Click win8simulator.rar to download the source code, which contains the tiger.jpg image and package. appxmanifest setting example.

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.