Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 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

2 What is the Portable Library MVVM in a nutshell App Scenario Demos AGENDA

3 Scenario Requirements Display customer data Edit customer data Clients Desktop Client Windows Store App Windows Phone App

4 The issue Multiple platforms technology Different class sets

5 Portable Library

6 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

7 .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

8 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 4.0.3 and 4.5√√ XLINQOnly 4.0.3 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 4.0.3 and 4.5√√ XLINQOnly 4.0.3 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 4.0.3 and 4.5√√ XLINQOnly 4.0.3 and 4.5√√√√ System.Numerics√√√

9 The MVVM Pattern Model-View-ViewModel in a nutshell

10 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

11 Using MVVM The Model Representation of the data source Business Logic Conceptual model Holds info about the connection No dependencies towards the View & ViewModel

12 Exploring the Model

13 Using MVVM The ViewModel Presentation logic Implements INotifyPropertyChanged Optionally implements the ICommand References the Model and it is lousily coupled on the View

14 Implementing the ViewModel with a Portable Library

15 Using MVVM The View UI representation of the data Usually a XAML UI (UI and code behind files) Ignores the Model

16 Super Duper Demo Windows Phone Windows Store WPF

17 Q&AQ&A Questions And Answers

18 @emarkelis @ekampant @MaritaPaletsou www.facebook.com/elias.markelis www.facebook.com/lia.kampantai www.facebook.com/marita.paletsou eliasmarkelis.wordpress.com studentguru.gr/b/ekampant/default.aspx codespot.gr emarkelis@windowslive.com liakamp@outlook.com paletsou@hotmail.com GET IN TOUCH

19

20 Thank you


Download ppt "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."

Similar presentations


Ads by Google