Mdn 0112Dg.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Simply Stunning. Today’s users expect beautiful apps in every part of their lives, from work to home. Now, with +L],_WYLZZ[VVSZ`V\JHUHWWS`ZVWOPZ[PJH[LK[OLTLZHUKPUJVYWVYH[LLSLNHU[6MÄJLPUZWPYLK controls into your designs. DXv2 delivers the tools you need to inspire and be inspired. +V^USVHK[OLKH`MYLL[YPHS[VL_WLYPLUJL[OLUL_[NLULYH[PVUVMKL]LSVWLY productivity tools at www.DevExpress.com Untitled-14 1 12/9/11 4:18 PM THE MICROSOFT JOURNAL FOR DEVELOPERS JANUARY 2012 VOL 27 NO 1 COLUMNS WINDOWS PHONE THE CUTTING EDGE Enhancing the Context-Sensitive Your First Windows Phone Application ASP.NET MVC Progress Bar Jesse Liberty ............................................................................ 24 Dino Esposito, page 6 Using Cameras in Windows Phone 7.5 DATA POINTS Making Do with Matt Stroshane ........................................................................ 30 Absent Foreign Keys Julie Lerman, page 14 Design Your Windows Phone Apps to Sell FORECAST: CLOUDY Mark Hopkins .......................................................................... 40 Windows Azure Caching Strategies Joseph Fultz, page 20 PLUS: TEST RUN Simulated Annealing and Testing Using HTML5 Canvas for Data Visualization James McCaffrey, page 76 Brandon Satrom ....................................................................... 46 THE WORKING PROGRAMMER Becoming a NuGet Author Building Combinators Clark Sell ................................................................................. 52 Ted Neward, page 82 Orchard Extensibility TOUCH AND GO Bertrand Le Roy ....................................................................... 56 Playing Audio Files in Windows Phone Securing Your ASP.NET Applications Charles Petzold, page 85 Adam Tuliper ........................................................................... 62 DON’T GET ME STARTED Lowering Higher Education Customized On-Screen Keyboards David Platt, page 88 with the .NET Framework Christopher M. Frenz ................................................................ 68 Extending SSRS: Developing Custom Charting Components and Rendering Extensions Manpreet Singh ....................................................................... 72 Write Once, Experience Many check out infragistics.com/jquery NetAdvantage® for jQuery TREE Simplify the look of hierarchical data, while offering the BUSINESS CHARTING experience, design Combine interactive and functionality Outlook style grids with your users will love! rich business charting to deliver a complete portable solution. Infragistics Sales 800 231 8588 • Infragistics Europe Sales +44 (0) 800 298 9055 • Infragistics India +91 80 4151 8042 • @infragistics Copyright 1996-2011 Infragistics, Inc. All rights reserved. Infragistics and NetAdvantage are registered trademarks of Infragistics, Inc. The Infragistics logo is a trademark of Infragistics, Inc. Untitled-5 2 10/12/11 1:24 PM HTML EDITOR Give your users a powerful HTML editing experience by incorporating the COMBO jQuery WYSIWYG The fully featured editing tool. combo box control HIERARCHICAL GRID offers intuitive An expandable data grid auto-suggest, that presents multiple auto-complete and parent-child relationships auto-filtering built in. VIDEO PLAYER is the backbone of your When a user finds data application. what they want to watch, our HTML5 video player adds streaming video right into your own apps. Untitled-5 3 10/12/11 1:24 PM ® JANUARY 2012 VOLUME 27 NUMBER 1 magazine Instantly Search LUCINDA ROWLEY Director KIT GEORGE Editorial Director/[email protected] Terabytes of Text PATRICK O’NEILL Site Manager MICHAEL DESMOND Editor in Chief/[email protected] “Bottom line: dtSearch manages a terabyte of text in a DAVID RAMEL Technical Editor single index and returns results in less than a second” SHARON TERDEMAN Features Editor InfoWorld WENDY GONCHAR Managing Editor KATRINA CARRASCO Associate Managing Editor “Covers all data sources … powerful Web-based engines” SCOTT SHULTZ Creative Director eWEEK JOSHUA GOULD Art Director “Lightning fast ... performance was unmatched by any CONTRIBUTING EDITORS Dino Esposito, Joseph Fultz, other product” Redmond Magazine Kenny Kerr, Julie Lerman, Dr. James McCaffrey, Ted Neward, Charles Petzold, David S. Platt For hundreds more reviews and developer case studies, see www.dtSearch.com Henry Allain President, Redmond Media Group Matt Morollo Vice President, Publishing Doug Barney Vice President, Editorial Director Highlights hits in a wide range of data, using Michele Imgrund Director, Marketing dtSearch’s own file parsers and converters Tracy Cook Online Marketing Director • Supports MS Office through 2010 (Word, Excel, ADVERTISING SALES: 508-532-1418/[email protected] PowerPoint, Access), OpenOffice, ZIP, HTML, Matt Morollo VP, Publishing XML/XSL, PDF and more Chris Kourtoglou Regional Sales Manager William Smith National Accounts Director • Supports Exchange, Outlook, Thunderbird and Danna Vedder Microsoft Account Manager other popular email types, including nested and Jenny Hernandez-Asandas Director Print Production ZIP attachments Serena Barnes Production Coordinator/[email protected] • Spider supports static and dynamic web data like ASP.NET, MS SharePoint, CMS, PHP, etc. Neal Vitale President & Chief Executive Offi cer • API for SQL-type data, including BLOB data Richard Vitale Senior Vice President & Chief Financial Offi cer Michael J. Valenti Executive Vice President 25+ full-text & fielded data search options Christopher M. Coates Vice President, Finance & Administration • Federated searching Erik A. Lindgren Vice President, Information Technology & Application Development David F. Myers Vice President, Event Operations • Special forensics search options Jeffrey S. Klein Chairman of the Board • Advanced data classification objects 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 APIs for C++, Java and .NET through 4.x $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. • Native 64-bit and 32-bit Win / Linux APIs; 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 .NET Spider API 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 • Content extraction only licenses available 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 Desktop with Spider Web with Spider 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), Network with Spider Engine for Win & .NET 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/ Publish (portable media) Engine for Linux 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. Phone: 914-368-1000; Ask about fully-functional evaluations! E-mail: [email protected]; Web: www.meritdirect.com/1105 All customer service inquiries should be sent to [email protected] or call 847-763-9560. The Smart Choice for Text Retrieval ® since 1991 www.dtSearch.com • 1-800-IT-FINDS Printed in the USA Untitled-1 1 12/6/11 11:40 AM EDITOR’S NOTE MICHAEL DESMOND A Quarter Century and Counting Twenty-fi ve years is a long time, especially in the soft ware devel- “Th at social connection continued for years: PC Magazine people opment business. So it’s hard to believe that Charles Petzold, and MSJ people would frequently hang out together at industry author of the UI Frontiers column, has been contributing to MSDN events such as Comdex, and get together for parties and dinners in Magazine and its predecessor Microsoft Systems Journal (MSJ) since New York City,” Petzold says, adding, “And sometimes editors would this publication launched in 1986. hop from one of the magazines to the other. Tony Rizzo went from Petzold’s contributions to the magazine stretch back to the inau- MSJ to PC Magazine, and Sharon Terdeman, who works for MSDN gural issue of MSJ in October 1986, and in December of that year he Magazine now, I originally knew when she was at PC Magazine.”