1 / 14

Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

05 | Advanced Contracts Pt 1. Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211. Agenda for the Day. Visit xamlShow on CodePlex http://xaml.codeplex.com. Module Agenda. Print Contract Settings Contract. Print Contract. Printing contract.

macey-nunez
Download Presentation

Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 05 | Advanced Contracts Pt 1 Jerry Nixon | Microsoft Developer Evangelist Daren May | President & Co-founder, Crank211

  2. Agenda for the Day • Visit xamlShow on CodePlex • http://xaml.codeplex.com

  3. Module Agenda • Print Contract • Settings Contract

  4. Print Contract

  5. Printing contract Basic API Considerations You are using XAML HTML/CSS is another option You could use your existing UI Probably not the best choice You can create a dedicated printing UI You handle everything pagination preview rendering • PrintManager • PrintDocument • DocumentSource • PrintTask • PrintTaskOptions

  6. Printing architecture Create (1) PrintDocument Get PrintManager (2) For current view Print (8) PrintTaskRequested (3) PrintManager AddPages (7) GetPreviewPage (6) Paginate (5) SetSource (4) PrintDocument

  7. Printing

  8. More printing resources • A great resource for a more complex scenario: • 31 Days of Windows 8 | Day #20: Printing • http://www.jeffblankenburg.com/2012/11/20/31-days-of-windows-8-day-20-printing • MSDN Printing Quickstart • http://msdn.microsoft.com/en-us/library/windows/apps/hh465204.aspx

  9. Settings Contract

  10. Settings contract • ApplicationSettings.SettingsPane • CommandsRequested event • ApplicationSettings.SettingsCommand • Key • Text • Action • Xaml.Controls.Primitives.Popup

  11. http://aka.ms/w8settings

  12. Settings helper

  13. Module Review • Print Contract • Settings Contract

More Related