the cutting edge event for ITPros and Devs December 7-8, 2013 Athens, Greece Fix it once use it everywhere Elias Markelis MCT, Windows Phone Enthusiast Lia Kampantai MVP C# Marita Paletsou Software engineer
What is the Portable Library MVVM in a nutshell App Scenario Demos AGENDA
Scenario Requirements Display customer data Edit customer data Clients Desktop Client Windows Store App Windows Phone App
The issue Multiple platforms technology Different class sets
Portable Library
Cross-Platform Development Special project for writing cross-platform libraries Project supports a subset of assemblies from the.NET Framework, Silverlight,.NET for Windows Store apps, Windows Phone, and Xbox 360 Can reduce time and cost of testing and development
.NET Framework 4 and higher.NET Framework Silverlight 4 and higher Silverlight Windows Phone 7 and higher SDK 8.0 min Windows Phone Xbox 360.NET for Windows Store apps TARGETS
Portable Library Features Feature.NET FrameworkWindows StoreSilverlightWindows PhoneXbox 360 Core√√√√√ LINQ√√√√ IQueryable√√√7.5 and higher Dynamic keywordOnly 4.5√√ Managed Extensibility Framework (MEF)√√√ Network Class Library (NCL)√√√√ Serialization√√√√ Windows Communication Foundation (WCF)√√√√ Model-View-View Model (MVVM)Only 4.5√√√ Data annotationsOnly and 4.5√√ XLINQOnly and 4.5√√√√ System.Numerics√√√ Feature.NET FrameworkWindows StoreSilverlightWindows PhoneXbox 360 Core√√√√√ LINQ√√√√ IQueryable√√√7.5 and higher Dynamic keywordOnly 4.5√√ Managed Extensibility Framework (MEF)√√√ Network Class Library (NCL)√√√√ Serialization√√√√ Windows Communication Foundation (WCF)√√√√ Model-View-View Model (MVVM)Only 4.5√√√ Data annotationsOnly and 4.5√√ XLINQOnly and 4.5√√√√ System.Numerics√√√ Feature.NET FrameworkWindows StoreSilverlightWindows PhoneXbox 360 Core√√√√√ LINQ√√√√ IQueryable√√√7.5 and higher Dynamic keywordOnly 4.5√√ Managed Extensibility Framework (MEF)√√√ Network Class Library (NCL)√√√√ Serialization√√√√ Windows Communication Foundation (WCF)√√√√ Model-View-View Model (MVVM)Only 4.5√√√ Data annotationsOnly and 4.5√√ XLINQOnly and 4.5√√√√ System.Numerics√√√
The MVVM Pattern Model-View-ViewModel in a nutshell
Using MVVM MVVM isolates the user interface from the underlying business logic. Portable Class can implement model and view model class Portable Library ModelModel ViewModelViewModel Windows App ViewView Silverlight App ViewView Windows Phone App ViewView Reference Portable Library ViewModelViewModel WCF Service ModelModel
Using MVVM The Model Representation of the data source Business Logic Conceptual model Holds info about the connection No dependencies towards the View & ViewModel
Exploring the Model
Using MVVM The ViewModel Presentation logic Implements INotifyPropertyChanged Optionally implements the ICommand References the Model and it is lousily coupled on the View
Implementing the ViewModel with a Portable Library
Using MVVM The View UI representation of the data Usually a XAML UI (UI and code behind files) Ignores the Model
Super Duper Demo Windows Phone Windows Store WPF
Q&AQ&A Questions And Answers
@emarkelis eliasmarkelis.wordpress.com studentguru.gr/b/ekampant/default.aspx codespot.gr GET IN TOUCH
Thank you