Your SlideShare is downloading. ×
Windows 8 Camp Montreal - 2012-04-10 - Integrating the Windows 8 experience with contracts
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Windows 8 Camp Montreal - 2012-04-10 - Integrating the Windows 8 experience with contracts

959
views

Published on

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
959
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Search Sharing Play To Settings App to App Picking
  • HTML5/XAML//build/ app, open Charms bar (Win-C, right edge swipe), Search, type a search term, filter results.
  • HTML5SearchExtension SDK SampleXAML
  • HTML5/XAMLOpen Photos, Select Photo, Charms Bar, Email, Share, Send
  • HTML5ShareSource SDK SampleXAML
  • HTML5ShareTarget SDK SampleXAML
  • HTML5XAML
  • HTML5XAML
  • Transcript

    • 1. demo
    • 2. demo
    • 3. demo
    • 4. dataTransferManager.addEventListener("datarequested", function (e) { … // Common properties var request = e.request; request.data.properties.title = "Title for data"; request.data.properties.description = "Description of the data"; request.data.properties.thumbnail = thumbnail; // of type StreamReference // Common methods request.data.setText("Text to share"); request.data.setHtml("<HTML …>"); request.data.setUri(uri /* of type Uri */); request.data.setBitmap(stream /* RandomAccessStream */); // Custom data request.data.setText("FormatID", "Text to share"); request.data.setData("FormatID", datastream /* RandomAccessStream */);
    • 5. // set up data transfer managervar dataTransferManager = Windows.ApplicationModel.DataTransfer.DataTransferManager.getFor CurrentView();// create event listener to be called on to fill out data packagedataTransferManager.addEventListener("datarequested", function (e) { // fill in data package with what to share var request = e.request; request.data.properties.title = "Title for data"; request.data.properties.description = "Description of the data"; request.data.setText("Text to share"); ... });
    • 6. demo
    • 7. Share Target
    • 8. <!– extension needs to be added to package.appxmanifest --><Extensions> <Extension Category="windows.shareTarget" StartPage="shareTarget.html"> <ShareTarget> <SupportedFileTypes> <FileType>.jpg</FileType> </SupportedFileTypes> <DataFormat>text</DataFormat> </ShareTarget> </Extension></Extensions>...// activation function in shareTarget.jsfunction activated(e) { if (e.kind === Windows.ApplicationModel.Activation.ActivationKind.shareTarget) { share = e.shareOperation; document.querySelector(.metadata h1).textContent = share.data.properties.title; document.querySelector(.metadata p).textContent = share.data.properties.description;
    • 9. demo
    • 10. function scenario2AddSettingsFlyout() { WinJS.Application.onsettings = function (e) { e.detail.applicationcommands = { "helpDiv": { title: "Help", href: "/html/2-SettingsFlyout-Help.html" } }; WinJS.UI.SettingsFlyout.populateSettings(e); };}
    • 11. demo
    • 12. Recap
    • 13. Adding SearchWindows Application contractsSearch API Reference