Building Metro style apps with XAML with .NET 2/22/2019 6:27 PM DEV353 Building Metro style apps with XAML with .NET Tim Heuer Program Manager Microsoft Corporation © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
My developer story Access/VBA Delphi VB3->6 (+ASP) “Cool” VB.NET Palm UI Windows Forms WAP ASP.NET (WebForms) SharePoint (WebParts) WAP Windows Forms SharePoint (WebParts) ASP.NET (WebForms) Windows Presentation Foundation (WPF) Silverlight Windows Phone Windows 8
My developer story Access/VBA Delphi VB3->6 (+ASP) “Cool” VB.NET Palm UI Windows Forms WAP ASP.NET (WebForms) SharePoint (WebParts) WAP Windows Forms SharePoint (WebParts) ASP.NET (WebForms) Windows Presentation Foundation (WPF) Silverlight Windows Phone Windows 8
.NET
Windows 8
I assume… You know .NET or you wouldn’t be here You know some XAML or at least the core concepts You’re concerned You want to strike it rich in the Windows Store, get acquired by <fill-in-the-blank-hot-company> and have a major motion picture made of your success
Familiar and New
We’ll focus on… Developer Tools and Project Structure .NET Framework and WinRT Windows.UI.Xaml Development Patterns Data for Apps Resource management and localization
Visual Studio for Metro style Apps Same great IDE experience you know Great .NET language support for C# and Visual Basic Plugin architecture still allows for your favorite plugin to work (i.e., Resharper, VSCommands, etc.) Blend fully integrated into VS Share same code base Blend designer included in install Windows 8 specific tools Packaging, manifest, deployment, store integration
.NET Framework and WinRT .NET (and C# and Visual Basic) is alive and well Windows Runtime (Windows.*) native APIs projected
[DllImport(“kernel32.dll”)]
.NET Framework and WinRT .NET (and C# and Visual Basic) is alive and well Windows Runtime (Windows.*) native APIs projected Can use C#/VB to create WinRT components Async everywhere: await/async keywords are your friends Reference assemblies for Metro style apps Surface area specific for Metro style app development Redundancy removed when matching WinRT API exists Portable Class Library projects Shared code at source and binary level Great for framework developers when possible
Development Patterns Code-behind approaches Simpler apps Event-driven Coupling UI to logic Model-View-ViewModel (MVVM) Separation of concerns More easily testable (TDD) Binding-driven No Behavior support currently
demo Lap Around Visual Studio IDE enhancements App model/Manifest .NET Framework and WinRT © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Windows.UI.Xaml
Windows.UI.Xaml Same XAML primitives Optimized for touch experiences New UI Controls, familiar XAML structure GridView/ListView SemanticZoom AppBar Animation Library ThemeAnimations and Transitions Extensibility Large 3rd party ecosystem still thriving
XAML UI Framework Extending the Framework 2/22/2019 6:27 PM demo Windows.UI.Xaml XAML UI Framework Extending the Framework © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Data for Apps WCF endpoints OData Anonymous type binding Local Storage Add Service Reference still works! OData In RP: Ultimate only, future will be NuGet/standalone DEV336: Creating and Consuming OData Services for Business Applications Anonymous type binding Local Storage IsolatedStorage Windows.Storage ESE (Jet) SQLite
Accessing Data Binding data Debugging data binding 2/22/2019 6:27 PM demo Data for Apps Accessing Data Binding data Debugging data binding © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Resources and Localization Common resource APIs for WinRT No strongly-typed class generation from resource file Folder- or file-based convention RESW == RESX in schema Windows 8 only supports String resources XAML leverages a ‘merge’ technique for markup String- and file-based resources compiled into PRI Visual Studio indexes all files for you
Resources and Localization 2/22/2019 6:27 PM demo Resources and Localization Resource Files © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Summary and More… You can use .NET for Apps and more Consider Portable Libraries as a method for code-share targeting Create WinRT components when desired/needed You can leverage your XAMl/.NET skills to be successful quickly in the Windows Store!
Platforms improve, UX/UI adapts
Related Content DEV369: Creating LOB Metro style Apps in XAML with Microsoft Blend and Visual Studio DEV358: Building Windows 8 Apps for the Enterprise DEV322: Building Windows 8 Metro style Apps with C++ DEV214: Introducing the New Visual Studio 2012 Unit Testing Experience Find Me Later At… Expo area, @timheuer, http://timheuer.com/blog/
DEV Track Resources Visual Studio Home Page :: http://www.microsoft.com/visualstudio/en-us Somasegar’s Blog :: http://blogs.msdn.com/b/somasegar/ Jason Zander’s Blog :: http://blogs.msdn.com/b/jasonz/ Facebook :: http://www.facebook.com/visualstudio Twitter :: http://twitter.com/#!/visualstudio
Resources Learning TechNet http://northamerica.msteched.com Connect. Share. Discuss. http://northamerica.msteched.com Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn
Complete an evaluation on CommNet and enter to win!
MS Tag Scan the Tag to evaluate this session now on myTechEd Mobile
2/22/2019 6:27 PM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2/22/2019 6:27 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.