SlideShare a Scribd company logo
Sapan Patel.
sapan@ipowersoftwares.com
+91-9712363687
What is MVVM ?
 MVVM is a design patterndesign pattern
 MVVM stands for Model-View-ViewModelModel-View-ViewModel
The View
Represents the user interface that the user will
see
Can be a page, user control or Data Template
Clean code-behind
Only visual logic (all the rest should go in
the ViewModel)
Should never contain anything that is to be
tested
Model-related
The Model
Data model, service reference/proxy classes,
Very often, an extra layer is added on top
of the generated proxy classes
Validation logic
Data access
No reference to ViewModel
ViewModel
It contains all the data that needs to be displayed and
procedures to modify the model at will.
The magic about MVVM is that the ViewModel
knows nothing about the View.
 State
 Operations
 Not dependent on the view
Data ModelData Model
ViewView
XAMLXAML
Code-BehindCode-Behind
View ModelView Model
State + OperationsState + Operations
Send
notification
Data-binding
and commands
Change
notification
MVVM MVC
**
11**
11
viewmodel
naviga
tion
resou
rces
web
servic
es
hardw
are
Benefits of MVVM
 Loose coupling
 Testable code
 Maintainable code
Thank You!

More Related Content

Viewers also liked

Viewers also liked (20)

MVVM
MVVMMVVM
MVVM
 
Big Data
Big DataBig Data
Big Data
 
Latvijas Garantiju aģentūras atbalsta instrumenti uzņēmumu paplašināšanai. Pi...
Latvijas Garantiju aģentūras atbalsta instrumenti uzņēmumu paplašināšanai. Pi...Latvijas Garantiju aģentūras atbalsta instrumenti uzņēmumu paplašināšanai. Pi...
Latvijas Garantiju aģentūras atbalsta instrumenti uzņēmumu paplašināšanai. Pi...
 
Latvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiem
Latvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiemLatvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiem
Latvijas Investīciju un attīstības aģentūras atbalsta programmas uzņēmējiem
 
Exclusive Christmas Treat from WebGuru
Exclusive Christmas Treat from WebGuruExclusive Christmas Treat from WebGuru
Exclusive Christmas Treat from WebGuru
 
Alternatīvas iespējas finansējuma piesaistei investīciju projektiem
Alternatīvas iespējas finansējuma piesaistei investīciju projektiem Alternatīvas iespējas finansējuma piesaistei investīciju projektiem
Alternatīvas iespējas finansējuma piesaistei investīciju projektiem
 
Dānijas pieredze mājokļu siltināšanā
Dānijas pieredze mājokļu siltināšanāDānijas pieredze mājokļu siltināšanā
Dānijas pieredze mājokļu siltināšanā
 
Padomi renovēto daudzdzīvokļu māju dzīvokļu īpašniekiem
Padomi renovēto daudzdzīvokļu māju dzīvokļu īpašniekiem Padomi renovēto daudzdzīvokļu māju dzīvokļu īpašniekiem
Padomi renovēto daudzdzīvokļu māju dzīvokļu īpašniekiem
 
Iepirkuma procedūras organizēšana atbilstoši ministru kabineta noteikumiem nr...
Iepirkuma procedūras organizēšana atbilstoši ministru kabineta noteikumiem nr...Iepirkuma procedūras organizēšana atbilstoši ministru kabineta noteikumiem nr...
Iepirkuma procedūras organizēšana atbilstoši ministru kabineta noteikumiem nr...
 
Mazo un vidējo uzņēmumu iespējas programmā Horizonts 2020
Mazo un vidējo uzņēmumu  iespējas programmā Horizonts  2020 Mazo un vidējo uzņēmumu  iespējas programmā Horizonts  2020
Mazo un vidējo uzņēmumu iespējas programmā Horizonts 2020
 
Vienkāršotā renovācija daudzdzīvokļu mājā ERAF aktivitātes kontekstā
Vienkāršotā renovācija daudzdzīvokļu mājā ERAF aktivitātes kontekstāVienkāršotā renovācija daudzdzīvokļu mājā ERAF aktivitātes kontekstā
Vienkāršotā renovācija daudzdzīvokļu mājā ERAF aktivitātes kontekstā
 
Prasības vienkāršotās renovācijas apliecinājuma kartei daudzdzīvokļu māju ren...
Prasības vienkāršotās renovācijas apliecinājuma kartei daudzdzīvokļu māju ren...Prasības vienkāršotās renovācijas apliecinājuma kartei daudzdzīvokļu māju ren...
Prasības vienkāršotās renovācijas apliecinājuma kartei daudzdzīvokļu māju ren...
 
MSDS Cosmesome-Ubq (NE, not containing ethanol)
MSDS Cosmesome-Ubq (NE, not containing ethanol)MSDS Cosmesome-Ubq (NE, not containing ethanol)
MSDS Cosmesome-Ubq (NE, not containing ethanol)
 
Iepirkuma procedūras organizēšana atbilstoši Ministru Kabineta noteikumiem Nr...
Iepirkuma procedūras organizēšana atbilstoši Ministru Kabineta noteikumiem Nr...Iepirkuma procedūras organizēšana atbilstoši Ministru Kabineta noteikumiem Nr...
Iepirkuma procedūras organizēšana atbilstoši Ministru Kabineta noteikumiem Nr...
 
Lake Wabukayne
Lake WabukayneLake Wabukayne
Lake Wabukayne
 
Pirmais daudzdzīvokļu mājas renovācijas projekts Ogrē piesaistot ERAF līdzfin...
Pirmais daudzdzīvokļu mājas renovācijas projekts Ogrē piesaistot ERAF līdzfin...Pirmais daudzdzīvokļu mājas renovācijas projekts Ogrē piesaistot ERAF līdzfin...
Pirmais daudzdzīvokļu mājas renovācijas projekts Ogrē piesaistot ERAF līdzfin...
 
Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.
Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.
Eiropas Savienības fondu finansējums uzņēmējdarbībai 2014. – 2020.
 
Document.docx
Document.docxDocument.docx
Document.docx
 
SIA "Kuldīgas namsaimnieks" pieredze
SIA "Kuldīgas namsaimnieks" pieredze  SIA "Kuldīgas namsaimnieks" pieredze
SIA "Kuldīgas namsaimnieks" pieredze
 
Kas jāņem vērā, uzsākot uzsākot uzņēmējdarbību un domājot par eksportu ārpus ...
Kas jāņem vērā, uzsākot uzsākot uzņēmējdarbību un domājot par eksportu ārpus ...Kas jāņem vērā, uzsākot uzsākot uzņēmējdarbību un domājot par eksportu ārpus ...
Kas jāņem vērā, uzsākot uzsākot uzņēmējdarbību un domājot par eksportu ārpus ...
 

Similar to Windows phone 8 (mvvm)

Building an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernateBuilding an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernate
bwullems
 
Mvvm pattern
Mvvm patternMvvm pattern
Mvvm pattern
msarangam
 
Mvvm in the real world tccc10
Mvvm in the real world   tccc10Mvvm in the real world   tccc10
Mvvm in the real world tccc10
Bryan Anderson
 

Similar to Windows phone 8 (mvvm) (20)

MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )
 
Building an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernateBuilding an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernate
 
Fundaments of Knockout js
Fundaments of Knockout jsFundaments of Knockout js
Fundaments of Knockout js
 
WPF For Beginners - Learn in 3 days
WPF For Beginners  - Learn in 3 daysWPF For Beginners  - Learn in 3 days
WPF For Beginners - Learn in 3 days
 
Portable Class Libraries and MVVM
Portable Class Libraries and MVVMPortable Class Libraries and MVVM
Portable Class Libraries and MVVM
 
Introduction to mvc architecture
Introduction to mvc architectureIntroduction to mvc architecture
Introduction to mvc architecture
 
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOSSoftware architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
 
Principles of MVC for PHP Developers
Principles of MVC for PHP DevelopersPrinciples of MVC for PHP Developers
Principles of MVC for PHP Developers
 
MVC in PHP
MVC in PHPMVC in PHP
MVC in PHP
 
MVVM presentation
MVVM presentationMVVM presentation
MVVM presentation
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
 
MVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - IndiandotnetMVC From Beginner to Advance in Indian Style by - Indiandotnet
MVC From Beginner to Advance in Indian Style by - Indiandotnet
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
 
Mvvm pattern
Mvvm patternMvvm pattern
Mvvm pattern
 
Mvvm in the real world tccc10
Mvvm in the real world   tccc10Mvvm in the real world   tccc10
Mvvm in the real world tccc10
 
ASP.MVC Training
ASP.MVC TrainingASP.MVC Training
ASP.MVC Training
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
Intro ASP MVC
Intro ASP MVCIntro ASP MVC
Intro ASP MVC
 
ASp.net Mvc 5
ASp.net Mvc 5ASp.net Mvc 5
ASp.net Mvc 5
 

More from ipower softwares (11)

Website Security
Website SecurityWebsite Security
Website Security
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
 
Entity Framework
Entity FrameworkEntity Framework
Entity Framework
 
Angular JS
Angular JSAngular JS
Angular JS
 
Big Data
Big DataBig Data
Big Data
 
Big Data
Big DataBig Data
Big Data
 
Media Query
Media QueryMedia Query
Media Query
 
Phone Gap
Phone GapPhone Gap
Phone Gap
 
WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)WCF (Windows Communication Foundation)
WCF (Windows Communication Foundation)
 
WPF
WPFWPF
WPF
 
Mvc 4
Mvc 4Mvc 4
Mvc 4
 

Recently uploaded

Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 

Recently uploaded (20)

First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERROR
 
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAGAI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
AI/ML Infra Meetup | Reducing Prefill for LLM Serving in RAG
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 

Windows phone 8 (mvvm)