WPF Programming with C# 5.0 WCF Routing Primer Volume 22, No
Total Page:16
File Type:pdf, Size:1020Kb
Untitled-10 1 6/6/12 11:32 AM VisualStudioMagazine.com Windows 8 APIs play nice with HTML5, JavaScript and CSS3. PLUS Silverlight PivotViewer WPF Programming with C# 5.0 WCF Routing Primer Volume 22, No. 9 Volume SEPTEMBER 2012 Start a Revolution Refuse to choose between desktop and mobile. With the brand new NetAdvantage for .NET, you can create awesome apps with killer data visualization today, on any platform or device. Get your free, fully supported trial today! www.infragistics.com/NET Infragistics Sales US 800 231 8588 • Europe +44 (0) 800 298 9055 • India +91 80 4151 8042 • APAC (+61) 3 9982 4545 Copyright 1996-2012 Infragistics, Inc. All rights reserved. Infragistics and NetAdvantage are registered trademarks of Infragistics, Inc. The Infragistics logo is a trademark of Infragistics, Inc. All other trademarks or registered trademarks are the respective property of their owners. Untitled-6 2 7/10/12 4:03 PM Compatible with Microsoft® Visual Studio® 2012 Untitled-6 3 7/10/12 4:04 PM Untitled-1 1 10/11/11 11:43 AM { FRAMEWORKS } 12 Keith Ward, Editor in Chief, Visual Studio Magazine Prepping for the Future You know, of course, that Windows 8 is just about here. But your shop is still making its money by building desktop/laptop software. What do you do? You might do what Adage Technologies September 2012 // Volume 22 // No. 9 is doing. This Chicago-based outfi t, started in 1999, continues to churn out line-of- business (LOB) apps as its bread and butter. FEATURES But, says Pat Emmons, cofounder and director of professional services, Adage is 12 Windows 8 Apps with HTML5 If you’re an experienced Web developer, you’ll love the HTML5/JavaScript/CSS3 also dipping its toe in the Windows 8 waters. options provided by Visual Studio 2012. Here’s a step-by-step guide to getting For a traditional code-focused company started. BY MICHAEL CRUMP like his, one of the major changes is the emphasis on design. Previously, Emmons Semantic Zoom with Silverlight 5 PivotViewer 18 says, “We thought our code carried the day.” The Silverlight 5 PivotViewer allows you to create unique and interactive data visualizations for your users. Find out how to effectively use this technology and Not so with Windows 8. “You make design incorporate semantic zoom into your data collections. BY TONY CHAMPION a big part of it from the beginning,” he adds. It’s a far cry from Visual Basic 6, which Adage used for years. “The shift to XAML has LANGUAGE LAB been a big learning curve. It’s kind of like the 28 PRACTICAL .NET anti-Visual Basic 6,” Emmons says. Many of Ensuring WCF Routing Flexibility the programs written in Visual Basic 6 look Windows Communication Foundation routing lets you decouple service consumers the same, he explains, but that “function and providers so you can modify and extend services without disrupting your clients. over form” mindset is becoming obsolete. BY PETER VOGEL Windows 8, Emmons says, is “all about 34 On VB branding and the UI experience.” That AOP with PostSharp comes through in the Windows 8 Aspect-oriented programming has the potential to help every developer write marketing-speak: “I’ve been doing higher-quality code in less time. Here’s how to declaratively apply custom methods [Microsoft-focused development] since to your code. BY JOE KUNK 1995, and ‘fast and fl uid’ was never part of 40 UI Code Expert the conversation,” he says. WPF Programming with C# 5.0 Now it’s the conversation, and requires Two new features of C# 5.0 can significantly improve your Windows Presentation attitude adjustments. “You can do so much Foundation UI programming. BY MARK MICHAELIS with [Windows 8] that it’s hard to get started,” he says. A developer can no longer DEPARTMENTS “just grab a button and throw it on the page.” Even though Adage’s core business will Letters to the Editor 6 be its LOB apps for the near future, 8 DevInsights VSTOOLBOX, PAPA’S PERSPECTIVE Emmons knows that change is a-comin’, VSToolbox: Comprehensive Testing with Telerik Test Studio PAGE 8 and he intends to see that his company is Papa’s Perspective: A Unified Approach to Client-Side Storage PAGE 10 on board, starting with Windows 8. But that’s not a bad thing. “That’s the COLUMNS awesomeness of the tech environment,” he says. “There’s always this rebirth.” 3 Frameworks BY KEITH WARD BY ANDREW J. BRUST COVER ILLUSTRATION BY SHUTTERSTOCK.COM/VSM STAFF SHUTTERSTOCK.COM/VSM BY ILLUSTRATION COVER 48 Redmond Review VisualStudioMagazine.com · September 2012 · VISUAL STUDIO MAGAZINE 3 Online Contents Get the complete picture —the latest dev news, analysis and REDDEVNEWS.COM ADTMAG.COM how-to content—at .NET ORMs Map New Direction Amazon Releases AWS VisualStudioMagazine.com in Wake of Visual Studio 2012 Cloud Security Practices BY KATHLEEN RICHARDS BY JEFFREY SCHWARTZ and our partner sites One of the beefs about the Microsoft While many cloud services providers have in the Redmond object-relational mapping tool, the Entity been reluctant to publicly disclose details Framework (EF), is its lack of extensibility. that would better explain how they secure Developer Network. That might change with EF 6 now that and ensure availability of their datacenters, Microsoft has open-sourced the code some have pointed to Amazon Web on CodePlex. Services (AWS) as the most distinguished holdout. Amazon took an important EASY FINDIT RedDevNews.com/Richards073112 What we once called FindIT codes are now easy step toward discrediting that claim by documenting its security practices. URLs. You’ll see these embedded throughout Microsoft Announces BUILD 2012 Visual Studio Magazine so you can access any BY KATHLEEN RICHARDS ADTmag.com/Schwartz073112 additional information quickly. Simply type in This year’s conference will start on Oct. 30, VisualStudioMagazine.com/ followed by the FindIT code into your URL address field. less than a week after Windows 8 is New Analyst Report Rips Agile scheduled to be released worldwide. In BY DAVID RAMEL addition to Windows 8 development, this In a brand-new report, analyst fi rm year’s event will offer sessions on Windows Voke Inc. claims: “The Agile movement Azure, Windows Phone 8, Windows Server is designed to sell services.” The 2012 and Visual Studio 2012. researchers analyze the movement and present their fi ndings about Agile use. RedDevNews.com/Richards072512 ADTmag.com/Ramel071312 VISUALSTUDIOMAGAZINE.COM Microsoft Updates Developer Preview of Cloud Identity Management Service Sun Veterans Create SDK The Builder Pattern in .NET BY KURT MACKIE for Native Java on the iPhone BY ERIC VOGEL Microsoft has enhanced the June developer BY JOHN K. WATERS The Builder software design pattern preview of Windows Azure Active Directory Codename One is developing a new SDK is commonly used to break up the with two additions aimed at opening up to allow Java developers to create native construction of a complex object. Eric Vogel the service to third-party developers. apps for mobile platforms, including iOS, covers the basic concepts and walks you Android, BlackBerry and Windows Phone. through the implementation in C#. RedDevNews.com/Mackie071712 ADTmag.com/Waters072512 VisualStudioMagazine.com/Vogel071612 ID Statement Visual Studio Magazine (ISSN 1537-002X) is published monthly by 1105 Media, Inc., 9201 Oakdale Avenue, Ste. 101, TFS Heads to the Clouds Chatsworth, CA 91311. Periodicals postage paid at Chatsworth, CA 91311-9998, and at additional mailing offi ces. Complimentary BY MICKEY GOUSSET subscriptions are sent to qualifying subscribers. Annual subscription rates payable in U.S. funds for non-qualifi ed subscribers are: U.S. $35.00, International $60.00. Annual digital subscription rates payable in U.S. funds for non-qualifi ed subscribers are: U.S. $25.00, With the 2012 release, Microsoft is adding International $25.00. Subscription inquiries, back issue requests, and address changes: Mail to: Visual Studio Magazine, P.O. Box a new way of consuming Team Foundation 2166, Skokie, IL 60076-7866, email [email protected] or call toll free (888) 768-8759, fax number 847-763-9564. Interna- tional calls 847-763-9135. POSTMASTER: Send address changes to Visual Studio Magazine, P.O. Box 2166, Skokie, IL 60076-7866. Server (TFS). Team Foundation Service Canada Publications Mail Agreement No: 40612608. Return Undeliverable Canadian Addresses to Circulation Dept. or XPO Returns: provides access to the features you’ve P.O. Box 201, Richmond Hill, ON L4B 4R5, Canada. come to expect without having to install Copyright Statement © Copyright 2012 by 1105 Media, Inc. All rights reserved. Printed in the U.S.A. Reproductions in whole or and manage the actual application on-site. part prohibited except by written permission. Mail requests to “Permissions Editor,” c/o Visual Studio Magazine, 230 California St. Suite 302, San Francisco, CA 94111. VisualStudioMagazine.com/Gousset071812 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 Disabling Design Time Data the same or similar results may be achieved in all environments. Technical in a Windows Phone Application inaccuracies may result from printing errors and/or new developments in the industry. BY NICK RANDOLPH Corporate Address 1105 Media, 9201 Oakdale Ave. Ste 101, Chatsworth, CA 91311 www.1105media.com Mobile Corner columnist Nick Randolph Media Kits Direct your Media Kit requests to Matt Morollo, VP Publishing, 508-532-1418 (phone), shows you how to effectively disable the 508-875-6622 (fax), [email protected] design time data in your Windows Phone Reprints For single article reprints (in minimum quantities of 250-500), e-prints, plaques and posters contact: application at runtime, without sacrifi cing PARS International Phone: 212-221-9595 E-mail: [email protected] www.magreprints.com/QuickQuote.asp the designer experience in Expression Blend.