Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lap Around WinRT for .NET devs

Lap Around WinRT for .NET devs

Ryan Joy

April 06, 2013
Tweet

More Decks by Ryan Joy

Other Decks in Programming

Transcript

  1. Everyday widgets

    View full-size slide

  2. Presenting data

    View full-size slide

  3. Semantic zoom

    View full-size slide

  4. Commanding surfaces

    View full-size slide

  5. Touch Platform Goals
    “Code for touch, get mouse and pen for free!”

    View full-size slide

  6. 1. Request Channel URI
    2. Register with your Cloud Service
    3. Authenticate & Push Notification

    View full-size slide

  7. Search Anatomy

    View full-size slide

  8. Search Anatomy

    View full-size slide

  9. //Easiest is to Add -> New Item -> Search Contract in visual Studio
    // Step 1: Declare the capability in the manifest



    //Step 2 : Handle the events
    SearchPane.GetForCurrentView().SuggestionsRequested +=
    OnSuggestionsRequested;
    // in App class
    protected override void OnSearchActivated(SearchActivatedEventArgs a)
    {
    // Do search here
    }

    View full-size slide

  10. //Step 1 : Handle the events
    // implement as many data formats as you can
    void OnDataRequested(DataTransferManager sender,
    DataRequestedEventArgs args)
    {
    var request = args.Request;
    request.Data.Properties.Title = _item.Title;
    request.Data.Properties.Description = "Recipe directions";
    request.Data.SetText(“ingredients”);
    request.Data.SetBitmap(reference);
    }

    View full-size slide