Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Shape 2013 developing multi targeting windows store and windows phone apps

430 views

Published on

Published in: Technology
  • Login to see the comments

  • Be the first to like this

Shape 2013 developing multi targeting windows store and windows phone apps

  1. 1. Developing Multi TargettingWin8 & WP8 Apps.Jose Luis LatorreSenior Developer, AccentureUI Lead Developer, Roche Diagnosticsjoslat@gmail.com - @joslathttp://silverlightguy.com
  2. 2. The importance of Multi Targeting 5’ABC of Multi Targeting 10’MVVM 5’ AgendaCreating our Multi Targeting App 25’Summarizing + Q & A 5’
  3. 3. The Importance ofMulti TargetingIt is important. that’s why you are here, right?
  4. 4. Windows Phone 8Windows Phone 7.x Direct3D, XAudiWindows Phone .NET o2, MF, WASAPI, Runtime WIN32, COM C#, VB C#, VB, C++ C++
  5. 5. Windows Phone 8 Developer Platform XAML Apps Direct3D Apps In-App XAML Maps Geolocation Sensors Direct3D Purchase HTML XML Threading Touch Speech XAudio2Your apps Phone Features Push Camera Video Proximity Media FoundationYour way Calendar Wallet Contacts Core Types VoIP STL Multitasking Live Tiles Memory Async Enterprise CRT C# and VB C#, VB, and C++ C++ File system, Networking, Graphics, Media Core Operating System
  6. 6. Networking Proximity In-App Purchase Sensors 2,800 Location 11,000 shared File Systemmembers members Core app model Threading
  7. 7. ABC of MultiTargetingLet’s see the main points on how to do it right, the first time.
  8. 8. • Share code across platforms using Portable Class Libraries• Apply MVVM to wire cross-platform apps• Create portable abstractions for non-portable functionality
  9. 9. • Link Source code files between platforms.• Create platform specific Views• Share UI with user controls• Always Decouple! Create Clean & SOLID Code.
  10. 10. portable classlibrary
  11. 11. One SourceOne ProjectOne BinaryMultiple Platforms!
  12. 12. Windows 8 Windows Phone 8
  13. 13. Windows 8 Windows Phone 8
  14. 14. Windows 8#if NETFX_COREDispatcher.RunAsync(CoreDispatcherPriority.Normal, () => {#endifWindows Phone 8#if WINDOWS_PHONEDeployment.Current.Dispatcher.BeginInvoke(() => {#endif
  15. 15. public class ServiceLocator{ public static IFileStorage FileStorage { get; set; } public static IPhotoChooser PhotoChooser { get; set; }}
  16. 16. MVVMIt deserves its own section on this XAML world.
  17. 17. User Interface App LogicGeneral Model-View-ViewModel (MVVM)
  18. 18. Creating our MultiTargeting AppWe will see how to create a Windows Store & Windows PhoneApp that share code and components.
  19. 19. • Usage of PCL to share code• Portable.MvvmLightLibs & Portable.CommonService Locator• MVVM done right• Linking code
  20. 20. • Usage of the Repository pattern• Creation of our first ViewModel• OData Client Tools for Windows Store & Windows Phone Apps (http://msdn.microsoft.com/en-us/jj658961)
  21. 21. Do not trust the web…
  22. 22. Summary..So, what have we seen?
  23. 23. Applying best practices is amustUsing proper design patternstooSharing Code through PCL &LinkingMVVM is fundamental
  24. 24. Jose Luis LatorreEmail: joslat@gmail.comTwitter: @joslatBlog: http://Silverlightguy.com

×