Itisimportant and youknowwhy!YouhavetwomainreasonsYouknowhowtechnologyevolvesthesedays and youwantto be ready!You do notwantto be closedintoonlyonedevice and technology, right?
Clean code: Easy to understand. Easy to modify. Easy to test. Works correctlySOLID Single responsibility, Open-closed principle, Liskov substitution, Interface segregation and Dependency inversionSTUPIDSingletonTight couplingUntestabilityPremature OptimizationIndescriptive NamingDuplication
The thread-handling dispatchers are different on Windows Phone and Windows 8. In windows 8, we use an element of the UI Core while in Windows Phone, we have a dispatcher that has been assigned to our app deployment. So, if you’re anything like me, you say “well it was worth a shot, time to give up”.
Model – Not UI relatedView Model – Encapsulates hat to display and flow of interactionView – Defines dow to display information from the View ModelHow does this relate to portable libraries? View – needs to be different per platform. View Model and Model can be the same between platforms.So this pattern is ideally suited for creating cross-platform apps, because it encourages a clean separation between the parts of your code that should be shared and those that are platform specific
What besides the UI wasn’t portable? File system, interaction with the OS.The View Models and Models will need that functionality. So…
Herewewill créatefirst a base multitargetingappfor wp8 and Windows store apps, and wire in allthenecesarytoworkwith MVVM in a properway.NextwewillimplementanOdataserviceaccestogetherwiththeRepositorypattern, togetherwiththecorresponding ViewModel and Views.
Therepositoryseparates data consumptionfromhowthe data getspersisted andloaded.OdataClient tolos extendtheaddservicereferencewithclientsideodatasupportfor Windows store and Windows pone apps.
Shape 2013 developing multi targeting windows store and windows phone apps
Developing Multi TargettingWin8 & WP8 Apps.Jose Luis LatorreSenior Developer, AccentureUI Lead Developer, Roche Diagnosticsjoslat@gmail.com - @joslathttp://silverlightguy.com
The importance of Multi Targeting 5’ABC of Multi Targeting 10’MVVM 5’ AgendaCreating our Multi Targeting App 25’Summarizing + Q & A 5’
The Importance ofMulti TargetingIt is important. that’s why you are here, right?
Windows Phone 8Windows Phone 7.x Direct3D, XAudiWindows Phone .NET o2, MF, WASAPI, Runtime WIN32, COM C#, VB C#, VB, C++ C++
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
Networking Proximity In-App Purchase Sensors 2,800 Location 11,000 shared File Systemmembers members Core app model Threading
ABC of MultiTargetingLet’s see the main points on how to do it right, the first time.
• Share code across platforms using Portable Class Libraries• Apply MVVM to wire cross-platform apps• Create portable abstractions for non-portable functionality
• Link Source code files between platforms.• Create platform specific Views• Share UI with user controls• Always Decouple! Create Clean & SOLID Code.