Enhancing Silverlight Video Experiences with Contextual Data
Total Page:16
File Type:pdf, Size:1020Kb
COLUMNS Cutting Edge ASP.NET Ajax Library Enhancing Silverlight Video Experiences and WCF Data Services with Contextual Data Dino Esposito page 6 Jit Ghosh page 32 CLR Inside Out Migrating an APTCA Assembly to the .NET Framework 4 Mark Rousos page 18 Data Points Precompiling LINQ Queries Julie Lerman page 29 Exploring Multi-Touch Support in Silverlight UI Frontiers CharlesCharles PetzoldPPetzold pagepageg 4646 MIDI Music in WPF Applications Charles Petzold page 64 Basic Instincts Generic Co- and Contravariance in Visual Basic 2010 Binyam Kelile page 68 Extreme ASP.NET Model Validation & Metadata in ASP.NET MVC 2 Performance Tuning with K. Scott Allen page 76 the Concurrency Visualizer Security Briefs Add a Security Bug Bar to Microsoft in Visual Studio 2010 Team Foundation Server 2010 Hazim Shafi page 56 Bryan Sullivan page 80 Test Run Testing Silverlight Apps Using Messages James McCaffrey page 86 Don’t Get Me Started Edge Cases David S. Platt page 96 VOL 25 NO 3 VOL MARCH 2010 Untitled-2 2 1/11/10 11:14 AM Infuse your team with the power to create user interfaces with extreme functionality, complete usability and the “wow-factor!” with NetAdvantage® in your .NET development toolbox. Featuring the most powerful and fastest data grids on the market for Windows Forms, ASP.NET, Silverlight and WPF, it’ll be like having the strength of 10 developers on every desktop. Go to infragistics.com/killerapps to find out how you and your team can start creating your own Killer Apps. Infragistics Sales 800 231 8588 Infragistics Europe Sales +44 (0) 800 298 9055 Infragistics India +91-80-6785-1111 Copyright 1996-2010 Infragistics, Inc. All rights reserved. Infragistics and the Infragistics logo and NetAdvantage are registered trademarks of Infragistics, Inc. Untitled-2 3 1/11/10 11:14 AM ® Instantly Search Terabytes of Text MARCH 2010 VOLUME 25 NUMBER 3 N 25+ full-text LUCINDA ROWLEY Director and fielded data DIEGO DAGUM Editorial Director search options KERI GRASSL Site Manager N Built-in file KEITH WARD Editor in Chief parsers and TERRENCE DORSEY Technical Editor converters DAVID RAMEL Features Editor WENDY GONCHAR Managing Editor highlight hits in popular SCOTT SHULTZ Creative Director file types JOSHUA GOULD Art Director ALAN TAO Senior Graphic Designer N Spider CONTRIBUTING EDITORS K. Scott Allen, Dino Esposito, Julie Lerman, Juval supports static Lowy, Dr. James McCaffrey, Ted Neward, Charles Petzold, David S. Platt and dynamic web data; highlights hits Henry Allain President, Redmond Media Group Matt Morollo Vice President, Publishing Desktop with Spider with links, Doug Barney Vice President, Editorial Director formatting and Michele Imgrund Director, Marketing Tracy Cook Online Marketing Director Network with Spider images intact Publish (for portable media) ADVERTISING SALES: 508-532-1418/[email protected] N API supports Matt Morollo VP, Publishing C++, NET, Java, Chris Kourtoglou Regional Sales Manager Web with Spider . William Smith National Accounts Director SQL, etc. .NET Danna Vedder Microsoft Account Manager Engine for Linux Spider API. Jenny Hernandez-Asandas Director Print Production .NET Serena Barnes Production Coordinator/[email protected] Engine for Win & Includes 64-bit (Win/Linux) N Neal Vitale President & Chief Executive Offi cer Fully-functional evaluations available Richard Vitale Senior Vice President & Chief Financial Offi cer Michael J. Valenti Executive Vice President Christopher M. Coates Vice President, Finance & Administration Abraham M. Langer Vice President, Digital Media, Audience Marketing Content extraction only licenses Erik A. Lindgren Vice President, Information Technology & Web Operations also available 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 “Bottom line: dtSearch manages a terabyte additional mailing offi ces. Annual subscription rates payable in U.S. funds: U.S. $35; Canada $45; International $60. 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, e-mail [email protected] or of text in a single index and returns 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 results in less than a second” — InfoWorld Addresses to Circulation Dept. or IMS/NJ. Attn: Returns, 310 Paterson Plank Road, Carlstadt, NJ 07072. © Copyright 2010 by 1105 Media, Inc. All rights reserved. Printed in the U.S.A. Reproductions in whole or part prohibited except by written permission. Mail requests to “Permissions Editor,” c/o MSDN dtSearch “covers all data sources … Magazine, 16261 Laguna Canyon Road, Ste. 130, Irvine, CA 92618. powerful Web-based engines” — eWEEK 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 “Lightning fast ... performance was inaccuracies may result from printing errors and/or new developments in the industry. unmatched by any other product” 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), — Redmond Magazine 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/ For hundreds more reviews, and QuickQuote.asp hundreds of developer case studies, 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; see www.dtSearch.com E-mail: [email protected]; Web: www.meritdirect.com/1105 All customer service inquiries should be sent to [email protected] or call 847-763-9560. 1-800-IT-FINDS • www.dtSearch.com The Smart Choice for Text Retrieval® since 1991 Printed in the USA Masthead.0310.lay4_2.indd 2 2/10/10 4:02 PM Your best source for software development tools! ® LEADTOOLS Recognition Multi-Edit 2008 VMware vSphere SDK v16.5 by Multi Edit Software Put time back into your day. by LEAD Technologies Multi-Edit 2008 delivers, a powerful IDE, Your business depends on how you spend Develop robust 32/64 bit document with its speed, depth, and support for your time. You need to manage IT costs imaging and recognition functionality into over 50 languages. Enhanced search without losing time or performance. With your applications with accurate and functions include Perl 5 Regular proven cost-effective virtualization solutions high-speed multi-threaded Forms, OCR, Expressions and definable filters. from VMware, you can: OMR, and 1D/2D barcode engines. Supports large DOS/Windows, UNIX, • Increase the productivity of your existing VMware • Supports text, OMR, image, and binary and Mac files. File Sync staff three times over barcode fields Integration for: Delphi 6, 7, 2005, C++ Advanced • Control downtime—whether planned Acceleration Kit • Auto-registration and clean-up to Builder 6, BDS 2006 and Rad Studio or not improve recognition results 2007, VB 6, VC 6, VS 2003, 2005 1-49 Users for 6 processors • Provided as both high and low and 2008. Includes file compare, code Paradise # • Save more than 50% on the cost of Paradise # level interface A30 01201A01 managing, powering and cooling servers V55 78101A01 Paradise # beautifying, command maps, and • Includes comprehensive confidence much more. L05 26301A01 $ 99 Make your time (and money) count for $ 99 reports to assess performance 179. more with virtualization from VMware. 9,234. $ 99 3,214. programmers.com/LEAD programmers.com/multiedit programmers.com/vSphere Pragma Fortress SSH—SSH gDoc Fusion Server & Client for Windows by Global Graphics BUILD ON by Pragma Systems gDoc Fusion is the easiest way to VMWARE ESXi Contains SSH, SFTP, SCP servers and clients assemble information from a range of AND VSPHERE for Windows. sources and formats and quickly create enterprise-quality PDF, XPS or Microsoft for Centralized Management, • Certified for Windows Server 2008R2 Word documents for sharing, printing Continuous Application • Compatible with Windows 7 or collaboration. Availability, and Maximum • High-performance servers with Operational Efficiency in Your Certified centralized management • One-click PDF/XPS creation for Windows • Active Directory & GSSAPI authentication • Merge and combine documents quickly 1-4 Users Includes Virtualized Datacenter. 7/2008R2 • Supports over 1000 sessions • Flick through large documents like Maint & Support* Programmer’s Paradise invites you to take advantage • Offers FIPS mode a book Paradise # of this webinar series sponsored by our TechXtend • Hyper-V and PowerShell support F39 ZSP0008 solutions division. Paradise # • Context sensitive text editing P35 04201A01 • Runs in Windows 2008R2/2008/2003/7/ $ 99 FREE VIRTUALIZATION WEBINAR SERIES: Vista/XP/2000