Windows 8 Development 31-05th-set contract

Source: Internet
Author: User

 

 

05th-set contract:

Today we start to learn about the contract. There will be several articles about the contract, and I will start from setting up the contract. In the program, it is very important to set the frequency of contract use. Let's talk about the contract:
Contract: A contract is like a protocol between one or more programs. A contract defines some conventions that an application must follow when it interacts with other programs or Windows.
For example, Windows allows users to share content from one program to another. Shared content programs support source contracts by meeting specified requirements, while those receiving shared content support target contracts by meeting another set of requirements. Both types of programs need to know the information about the other program. Every program involved in the sharing contract can support the sharing workflow.
This sounds like a managed interface-between a program and an operating system. Five contracts can be used in our program:

  • File Picker
  • Play
  • Search
  • Settings
  • Share


Just like a typical programming interface, the program that extends the functions of these interfaces does not know the principle of these interfaces.
In Windows 8, all these actually feel like they happen at the user experience level. What do I mean? Let me give an example of a shared contract. Simply put, an application tells the operating system and registers it. For example, to share an image, you can receive an image or share an image. Then Windows will act as the intermediary for related processing.
Imagine a scenario where you can find a very good article when you are using IE to browse the Web page. You want to share your article with others via email or Twitter. If you have installed an email or Twitter program and both email and Twitter share a URI, IE can share it via email or Twitter. What's better is that the email or Twitter program does not necessarily need to run, and Windows will help with the process.
It sounds a bit like a typical programming interface, isn't it?

 

PDF

05th-set contract

For more information, visit the following link:

Windows 8 development day 31

 

Some

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.