Introduction to Windows 8 style application Development 14 Sharecontract Overview and principles

Source: Internet
Author: User

Share Contract Overview

We all know that Windows 8 contains 3 classes of different Contract:search Contract, Share Contract, Setting Contract. These three kinds of application contract provide a consistent programming model for consolidating the Windows 8 experience.

Now Weibo, everyone is a very hot platform, and many of us are willing to share what we saw and heard on these platforms. There may be a number of different applications on our computer, including social classes.

So how do we share these application information with social applications? Windows 8 provides us with a powerful share Contract that allows information to be shared between two applications.

Share contract provides a lightweight, context-related shared experience.

Windows 8 completes the heavy work of allowing cross application sharing, while shared source applications should contain as many data formats as possible, and shared goals should also support more formats.

Realization principle of Share contract

Windows 8 has done a lot of work to make it easier for developers to implement share contract in applications, and developers don't need to be able to share protocols that are shared between different applications. Developers only need to declare in their own applications that something can be shared, or that it can accept content shared by other applications.

The structure that Windows 8 constructs for share contract contains "source program" and "Target program", and the transport link between source program and Target program is "packet" and "packet" exists in "source program".

So how do you implement sharing from source program to target program?

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.