MDN 0513DG.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Untitled-5 1 3/28/13 2:42 PM THE MICROSOFT JOURNAL FOR DEVELOPERS MAY 2013 VOL 28 NO 5 magazine Parse JSON Strings in WinRT Components.......32 Parse JSON Strings in Windows COLUMNS Runtime Components CUTTING EDGE Craig Shoemaker .............................................................32 Social Authentication in ASP.NET MVC 4 Leverage Multiple Code Frameworks Dino Esposito, page 6 with One ASP.NET WINDOWS WITH C++ Jeff Fritz .........................................................................42 Introducing Direct2D 1.1 Kenny Kerr, page 12 Migrating Legacy .NET Libraries WINDOWS AZURE INSIDER Geo-Protection for Video Blobs to Target Modern Platforms Using a Node.js Media Proxy Josh Lane ........................................................................50 Bruno Terkaly and Ricardo Villalobos, page 24 Windows Phone Video Capture: TEST RUN DATA A Best-of-Breed Approach Data Clustering Using Chris Barker ....................................................................56 Category Utility James McCaffrey, page 76 Understanding and Using the DIRECTX FACTOR SharePoint 2013 REST Interface Exploring Filters in XAudio2 Charles Petzold, page 82 Jim Crowley ....................................................................62 DON’T GET ME STARTED Shortest-Path Graph Analysis Using Do As I Say, Not As I Do a CLR Stored Procedure David Platt, page 88 James McCaffrey .............................................................68 Desktop Deliver high performance, scalable and stylable touch-enabled enterprise applications in the platform of your choice. Native Mobile Develop rich, device-specific user experience for iOS, Android, and Windows Phone, as well as mobile cross-platform apps with Mono-Touch. Download Your Free Trial infragistics.com/enterprise-READY Untitled-2 2 4/10/13 3:06 PM Cross- Platform Build standards-based, touch-enabled HTML5 & jQuery experiences for desktop, tablet, and mobile delivery, including multi- device targeting with frameworks such as PhoneGap and MVC. UX Prototyping Explore design ideas through rapid, user-centered wireframing, prototyping, and evaluation before investing a single line of code. Infragistics Sales US 800 231 8588 • Europe +44 (0) 800 298 9055 • India +91 80 4151 8042 • APAC (+61) 3 9982 4545 Copyright 1996-2013 Infragistics, Inc. All rights reserved. Infragistics and NetAdvantage are registered trademarks of Infragistics, Inc. The Infragistics logo is a trademark of Infragistics, Inc. Untitled-2 3 4/10/13 3:07 PM MAY 2013 VOLUME 28 NUMBER 5 magazine BJÖRN RETTIG Director MOHAMMAD AL-SABT Editorial Director/[email protected] PATRICK O’NEILL Site Manager MICHAEL DESMOND Editor in Chief/[email protected] DAVID RAMEL Technical Editor SHARON TERDEMAN Features Editor WENDY HERNANDEZ Group Managing Editor KATRINA CARRASCO Associate Managing Editor SCOTT SHULTZ Creative Director JOSHUA GOULD Art Director SENIOR CONTRIBUTING EDITOR Dr. James McCaffrey CONTRIBUTING EDITORS Rachel Appel, Dino Esposito, Kenny Kerr, Julie Lerman, Ted Neward, Charles Petzold, David S. Platt, Bruno Terkaly, Ricardo Villalobos Henry Allain President, Redmond Media Group Michele Imgrund Sr. Director of Marketing & Audience Engagement Tracy Cook Director of Online Marketing Irene Fincher Audience Development Manager ADVERTISING SALES: 818-674-3416/[email protected] Dan LaBianca Vice President, Group Publisher Chris Kourtoglou Regional Sales Manager Danna Vedder Regional Sales Manager/Microsoft Account Manager Jenny Hernandez-Asandas Director, Print Production Serena Barnes Production Coordinator/[email protected] Neal Vitale President & Chief Executive Offi cer Richard Vitale Senior Vice President & Chief Financial Offi cer Michael J. Valenti Executive Vice President Christopher M. Coates Vice President, Finance & Administration Erik A. Lindgren Vice President, Information Technology & Application Development David F. Myers Vice President, Event Operations Jeffrey S. Klein Chairman of the Board MSDN Magazine (ISSN 1528-4859) is published monthly by 1105 Media, Inc., 9201 Oakdale Avenue, Ste. 101, Chatsworth, CA 91311. Periodicals postage paid at Chatsworth, CA 91311-9998, and at additional mailing offi ces. Annual subscription rates payable in US funds are: U.S. $35.00, International $60.00. Annual digital subscription rates payable in U.S. funds are: U.S. $25.00, International $25.00. Single copies/back issues: U.S. $10, all others $12. Send orders with payment to: MSDN Magazine, P.O. Box 3167, Carol Stream, IL 60132, email [email protected] or call (847) 763-9560. POSTMASTER: Send address changes to MSDN Magazine, P.O. Box 2166, Skokie, IL 60076. Canada Publications Mail Agreement No: 40612608. Return Undeliverable Canadian Addresses to Circulation Dept. or XPO Returns: P.O. Box 201, Richmond Hill, ON L4B 4R5, Canada. Printed in the U.S.A. Reproductions in whole or part prohibited except by written permission. Mail requests to “Permissions Editor,” c/o MSDN Magazine, 4 Venture, Suite 150, Irvine, CA 92618. Legal Disclaimer: The information in this magazine has not undergone any formal testing by 1105 Media, Inc. and is distributed without any warranty expressed or implied. Implementation or use of any information contained herein is the reader’s sole responsibility. While the information has been reviewed for accuracy, there is no guarantee that the same or similar results may be achieved in all environments. Technical inaccuracies may result from printing errors and/or new developments in the industry. Corporate Address: 1105 Media, Inc., 9201 Oakdale Ave., Ste 101, Chatsworth, CA 91311, www.1105media.com Media Kits: Direct your Media Kit requests to Matt Morollo, VP Publishing, 508-532-1418 (phone), 508-875-6622 (fax), [email protected] Reprints: For single article reprints (in minimum quantities of 250-500), e-prints, plaques and posters contact: PARS International, Phone: 212-221-9595, E-mail: [email protected], www.magreprints.com/ QuickQuote.asp List Rental: This publication’s subscriber list, as well as other lists from 1105 Media, Inc., is available for rental. For more information, please contact our list manager, Merit Direct, Attn: Jane Long. Phone: 913-685-1301; E-mail: [email protected]; Web: www.meritdirect.com/1105 All customer service inquiries should be sent to [email protected] or call 847-763-9560. Printed in the USA FlowForce Server Job triggers User management Access control StyleVision Server MapForce Server HTML, PDF, Word, XML, SQL DBs, OOXML, RTF EDI, flat files, XBRL, Web services Manage Information Workflows with Altova® FlowForce® Server Finally, there is a flexible workflow orchestration tool to automate essential business processes defined using the award-winning Altova® MissionKit® developer tools. Introducing FlowForce, the powerful new server tool for managing today’s multi-step, enterprise-level data validation, processing, aggregation, and reporting tasks. Tight integration with Altova MissionKit FlowForce Server is at the center developer tools including MapForce and of Altova’s new line of server tools StyleVision lets you design data mapping optimized for today’s high-performance, projects and report templates, and then parallel computing environments: easily deploy them to FlowForce Server • FlowForce® Server for orchestrating for automation with comprehensive events, triggers, and the automation management options and secure of processes access control. • MapForce® Server for automating any-to-any data mapping and aggregation processes • StyleVision® Server for automating business report generation in HTML, PDF, and Word Learn more and download a free trial of Altova FlowForce and the complete line of Altova server tools at www.altova.com/server Untitled-1 1 4/10/13 3:04 PM EDITOR’S NOTE MICHAEL DESMOND Design Matters David Platt, in this month’s Don’t Get Me Started column, returns “We thought a lot of people would [pursue design] in the XAML to a rant he’s made before in the pages of this magazine: that the era, and almost no one did. You look at most XAML apps and they’re compelling new visual capabilities of Windows 8 may inspire as just kind of Windows Forms designs with pretty colors,” Hollis said. much bad design in new applications as they do compelling design. “I call them decorated apps. Th ey’re not designed, they’re decorated.” Now Platt turns his ire on live tiles, noting that Microsoft ’s own But the new Microsoft design language introduced with Windows developers are guilty of breaking the published Microsoft design 8 and Windows Runtime represents a far more strategic shift. guidance about how oft en live tiles should update on the screen. Microsoft , Hollis said, is in a race with other developer ecosystems to As a guy steeped in the practice of UI design, Platt saw this coming get its community fully vested in the practice of design. It’s a race that from a mile away. “Every time a new graphical environment arrives, Microsoft is late entering, but serious about winning. Th e problem, users pay the price while designers relearn the basic principles that explained Hollis, is that changing developer priorities takes time. should be branded on their hearts: Users don’t care about your app “First of all, there’s a foundation you have to learn,” Hollis said. for itself—they only care about their own problems and their own “You have to know certain principles. And then there’s a process pleasures,” Platt presciently wrote in his November 2012 column shift you have to understand. It’s a discipline.