magazine
THE MICROSOFT JOURNAL FOR DEVELOPERS
JULY 2013 VOL 28 NO 7
How Microsoft’s Next-Gen Compiler
Project Can Improve Your Code
Jason Bock ...................................................................... 34
Leveraging Windows 8 Features with MVVM
Brent Edwards .................................................................42
Create a Windows Phone 8
Company Hub App
Tony Champion ............................................................... 56
Building Apps for Windows 8
and Windows Phone 8
Joel Reyes ....................................................................... 64
Build Modern Business Productivity Apps
with Visual Studio LightSwitch
Jan Van der Haegen and Beth Massi ...................................70
COLUMNS
CUTTING EDGE
Creating Mobile-Optimized
Views in ASP.NET MVC 4
Dino Esposito, page 6
DATA POINTS
Behavior-Driven Design
with SpecFlow
Julie Lerman, page 12
WINDOWS AZURE INSIDER
Meter and Autoscale
Multi-Tenant Applications
in Windows Azure
Bruno Terkaly and
Ricardo Villalobos, page 22
MODERN APPS
Mastering Controls and
Settings in Windows Store Apps
Built with JavaScript
Rachel Appel, page 78
DIRECTX FACTOR
Simulating an
Analog Synthesizer
Charles Petzold, page 82
DON’T GET ME STARTED
Activation Energy
David Platt, page 88
Inside the “Roslyn”
Project Compiler..................34
Desktop
Native
Mobile
Download Your Free Trial
infragistics.com/enterprise-READY
Deliver high performance, scalable
and stylable touch-enabled
enterprise applications in the
platform of your choice.
Develop rich, device-specific user experience for
iOS, Android, and Windows Phone, as well as
mobile cross-platform apps with Mono-Touch.
Untitled-6 2 5/1/13 2:31 PM
Cross-
Device
Infragistics Sales US 800 231 8588 • Europe +44 (0) 800 298 9055 • India +91 80 4151 8042 • APAC (+61) 3 9982 4545
UX
Prototyping
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.
Explore design ideas through rapid, user-centered
wireframing, prototyping, and evaluation before
investing a single line of code
.
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-6 3 5/1/13 2:32 PM
Printed in the USA
magazine
JULY 2013
VOLUME
28
NUMBER
7
BJÖRN RETTIG Director
MOHAMMAD AL-SABT Editorial Director/mmeditor@microsoft.com
PATRICK O’NEILL Site Manager
MICHAEL DESMOND Editor in Chief/mmeditor@microsoft.com
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/dlabianca@1105media.com
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/msdnadproduction@1105media.com
Neal Vitale President & Chief Executive Of cer
Richard Vitale Senior Vice President & Chief Financial Of 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 of 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 MSDNmag@1105service.com 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), mmorollo@1105media.com
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: 1105reprints@parsintl.com, 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: jlong@meritdirect.com; Web: www.meritdirect.com/1105
All customer service inquiries should be sent to MSDNmag@1105service.com or call 847-763-9560.