2 3 4 6 8 9 10 11 12 15.

Slides:



Advertisements
Similar presentations
Module 1: Creating an Application by Using Windows Presentation Foundation Overview of WPF Creating a Simple WPF Application Handling Events and Commands.
Advertisements

Expression Blend 4 – deep dive
Silverlight is dead! Long live MVVM!
Understanding the MVVM pattern
Developing HTML5 Application using MVVM pattern Pekka Ylenius.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
MVVM: Filling the Pattern Gap in Silverlight Application Development Bart McDonough Principal Consultant Incline Technical Group.
USING THE MODEL-VIEW- VIEWMODEL PATTERN Laurent Bugnion Director, User Experience Integration IdentityMine
Lessons learned from developing a Windows 8 Metro application in C# Frode Nilsen Nilsen Labs Ticki.
Practical MVVM Joel Cochran.
Knockoutjs and JQuery The One-Two Punch for Richer MVC 4 Applications Connecticut.NET Developers Group November 13, 2012.
An Introduction to the Model-View-ViewModel Pattern Srsly? Another MV* Pattern? Srsly? Another MV* Pattern?
Or How I Learned to Stop Worrying and Love the Binding Bryan Anderson.
An Introduction To Silverlight Gergely Orosz
Laurent Bugnion Senior User Experience Integrator IdentityMine
Labreg in WPF By Lior Shetrit Semester: Spring 2009 Instructor: Viktor Kulikov March 25, 2009 Networked Software Systems Lab Department of Electrical Engineering,
WPF MVVM Training Michael Sync (Silverlight MVP).
Real world Windows Phone development Igor
Thomas Spiegl Manfred Geiler Irian Solutions - The Software Experts
Object-Oriented Analysis and Design
Building Silverlight Applications Using the MVVM pattern An Introduction by Peter Messenger Senior Developer – Qmastor
Shailen Sukul Senior Solutions Architect EMC BSc | Mct | Mcpd (.Net 2/3.5) | Mcts (Sharepoint (MOSS/WSS), Biztalk, Web, Win, Dist Apps) | Mcsd.NET | Mcsd.
Joe xamlcoder.com/blog Silverlight / WPF Consultant.
@benday #vslive Better Unit Tests through Design Patterns: Repository, Adapter, Mocks, and more… Benjamin
Todd Snyder Development Team Lead Infragistics Experience Design Group.
Building an Offline Smart Client using Domain-Driven Design Principles Tim McCarthy.
Composite User Interface Application Block Peter Provost Development Lead – patterns & practices
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Windows Presentation Foundation (WPF). Introduction Separates appearance of user interface from behavior Appearance usually specified by XAML Behavior.
Model View Controller MVC Web Software Architecture.
Nikhil Kothari Software Architect Microsoft Corporation Session Code: WUX312.
The Start Menu……..Exposed What you never knew existed.
Windows 10 UWP MVVM In Depth
Overview of the MVVM pattern for Silverlight and WPF.
Introduction (Continued) Design Patterns (I) Lecture Two.
DEV321. demo Rule: Any slide about UX must be charcoal gray or black.
Module 4 Taking Control of the User Interface. Module Overview Sharing Logical Resources in an Application Creating Consistent User Interfaces by Using.
TK2023 Object-Oriented Software Engineering CHAPTER 8 LOGICAL ARCHITECTURE.
Platform abstractionSeparate UI and logic.
Simple Clicker App WPF App using C#. App Requirement Need a ‘counter’ display, which starts at 0 Need a ‘clicker’ button ! Pressing the clicker every.
Model View ViewModel Architecture. MVVM Architecture components.
Testing WebForms w/ Model-View-Presenter Erik Peterson.
MVVM Pattern Mahender Senior Software Engineer United Health Group.
Windows 8 apps and the MVVM pattern SILVERLIGHTSHOW.NET WEBINARS SERIES GILL CLEEREN, October 16 th
Soyatec Contents Needs Architecture XAML fundamentals Data Binding Advanced features Style Q&A.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Programming with MVVM Miguel A. Castro Architect -
WPF (Avalon), Windows App GUI Windows App GUI Web App GUI Web App GUI HTML HTML XML XML WPF WPF LINQ LINQ.
/DEV/TM #1 Building Cross-Platform Apps with Xamarin and MvvmCross Flavius-Radu DEMIAN.
Adam Schultz MVVM and WPF. MVVM Model, View, ViewModel A software architecture designed to separate out User Interface design, Business Logic, and Data.
In Windows 8 Store Applications
Real world Windows Phone development
Better Unit Tests through Design Patterns: Repository, Adapter, Mocks, and more… Benjamin
WPF (Avalon), LINQ (Orcas)
MVC and Design Patterns
Build Windows 10 UWP MVVM Apps with Prism
Building Web Applications with Microsoft ASP
JS301 Week 4 Knockout and Objects.
Mobile App ux/ ui design In High Quality.
Chapter 13 Logical Architecture.
Introduction to the MVVM Pattern
Chapter 13 Logical Architecture.
What’s new for Windows 8 Devs Part 2
class PrintOnetoTen { public static void main(String args[]) {
Robotics Website By Andy Kelley.
XAML Deep Dive for Windows & Windows Phone Apps Jump Start
Windows Presentation Foundation: Applications
Tech Ed North America /6/2019 2:07 PM Required Slide
An Introduction to the Model-View-ViewModel Pattern
Presentation transcript:

2

3

4

6

8

9

10

11

12

15

What's MVVM? is an architectural pattern created by John Gossman from WPF team is a variation of MVC pattern is similar to Martin Fowler’s PresentationModel pattern WPF Data Binding & Commanding

Motivation and benefits Testabiltiy ( ViewModel is easier to unit test than code-behind or event driven code ) Clear seperation between UX designer and developer Increases the "Blendability" of your view Model never needs to be changed to support changes to the view ViewModel rarely needs to be changed to support changes to the view No duplicated code to update views

MVVM View knows ViewModel ViewModel knows Models But not vice versa.

View represents the user interface that the user will see. can be a user control or Data Template shouldn't contain any logic that you want to test Keep the view as simple as possible.

View Model An abstraction of View Connector between View and Model Keep View State, Value Conversion No strong or weak (via Interface) reference of View Make VM as testable as possible (e.g. no call to Singleton class) No Control related Stuff in VM

Model can be Data Model, DTO, POCO, auto- generated proxy of domain class and UI Model based on how you want to have the separation between Domain Service and Presentation Layer No reference to ViewModel

26

Hello World!

29 public class MyApp : Application { [STAThread] static void Main(string[] args) { MyApp app = new MyApp(); app.Startup += app.OnApplicationStartup; app.Run(args); } void OnApplicationStartup(object sender, StartupEventArgs e) { Window w = new Window(); w.Title = "Mark says: Hello World!"; w.Show(); } }

Just text Just text The next line

32 Top left Middle LRight

void innerButton_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Hello SDN!"); e.Handled = true; }

Name: City: < >