Building Silverlight Applications Using the MVVM pattern An Introduction by Peter Messenger Senior Developer – Qmastor

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!
Introduction to the Windows Runtime (WinRT) Ben Dewey Tallan, Inc.
MVVM Basics with Caliburn.Micro Presented by Stefan Nuxoll, Lithium PC.
Understanding the MVVM pattern
Developing HTML5 Application using MVVM pattern Pekka Ylenius.
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.
Intermediate Visual Basic CISP 371 CRC Prof. Chapman.
Practical MVVM Joel Cochran.
Knockoutjs and JQuery The One-Two Punch for Richer MVC 4 Applications Connecticut.NET Developers Group November 13, 2012.
Or How I Learned to Stop Worrying and Love the Binding Bryan Anderson.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
An Introduction To Silverlight Gergely Orosz
Laurent Bugnion Senior User Experience Integrator IdentityMine
Windows Presetation Foundation (WPF) 1. Introduction.
WPF MVVM Training Michael Sync (Silverlight MVP).
Microsoft Focus & Expertise We have a world-class team of Microsoft experts that can make any other platform integrate better with an existing enterprise.

Development of mobile applications using PhoneGap and HTML 5
© 2014 HL7 ® International. Licensed under Creative Commons. HL7 & Health Level Seven are registered trademarks of Health Level Seven International. Reg.
Developing games and applications for Xbox 360 using XNA* *XNA is XNA’s Not Acronymed An Introduction by Peter Messenger Senior Developer at QMASTOR Newcastle.
DEV337 demo From The Book of WPF, available from my site 10rem.net.
Hot Tuna CROSS PLATFORM DEVELOPMENT WITH.NET, XAMARIN AND MVVMCROSS.
Object Oriented Programming CEN 221. Course Description Classes, objects, inheritance, polymorphism, graphical user interfaces, event handling, exception.
MVC pattern and implementation in java
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
A Jumpstart to WPF by Kevin Grossnicklaus ArchitectNow.
Windows Presentation Foundation. Goal The goal of Windows Presentation Foundation (WPF) is to provide these advances for Windows. Included in version.
Windows Presentation Foundation Adam Calderon Principal Engineer Interknowlogy LLC
Silverlight Technology. Table of Contents 1.What is Silverlight Technology? 2.Silverlight Overview. 2.1 How it works 2.2 Silverlight development tools.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Binding Basics.
Windows Presentation Foundation (WPF). Introduction Separates appearance of user interface from behavior Appearance usually specified by XAML Behavior.
Nikhil Kothari Software Architect Microsoft Corporation Session Code: WUX312.
Windows 10 UWP MVVM In Depth
Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out : ‘Microsoft Silverlight “Media” : Moving at 60fps’
04 |Sharing Code Between Windows 8 and Windows Phone 8 in Visual Studio Ben Riga
Platform abstractionSeparate UI and logic.
An Introduction to Developing Applications for Microsoft Silverlight Jaime Rodriguez
Model View ViewModel Architecture. MVVM Architecture components.
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
Programming with MVVM Miguel A. Castro Architect -
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.
Working in a Mobile App Development Environment Lesson 2.
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
MVVM Made Simple with Prism
Ben Riga 02 | Basics of View Models Ben Riga
Build Windows 10 UWP MVVM Apps with Prism
OpenWells Cross-Platform Mobile Application
It’s a Knockout! MVVM Style Web Development
Introduction to Silverlight
Miguel A. Castro Architect IDesign
Introduction to the MVVM Pattern
.NET and .NET Core 7. XAML Pan Wuming 2017.
Silverlight Technology
תכנות אסינכרוני, תקשורת ופיתוח אפליקציות ל-Windows 8
An introduction to MVVM using WPF NISCHAL S
SmartMaster 2016 Controller
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
XAML Deep Dive for Windows & Windows Phone Apps Jump Start
An Introduction to the Model-View-ViewModel Pattern
Presentation transcript:

Building Silverlight Applications Using the MVVM pattern An Introduction by Peter Messenger Senior Developer – Qmastor

Silverlight and WPF User interface programming platform operates on top of the NET framework WPF is windows based Silverlight can run in web browsers, Windows and Apple, Windows Mobile etc –Use XAML (eXtensible Application Markup Language) –Have powerful databinding capabilities –Have command properties where screen elements can perform actions

Example XAML and Code Behind Hello World Example Using XAML View and “traditional” events and elements knowledge Simple.xaml

What is the MVVM pattern? Model View ViewModel is a coding pattern to develop Silverlight and WPF applications. Main aims –Cleaner code and easier to maintain and extend –Testable applications –Thinner user interface layer –Easier for User Interface designers to concentrate on how the application will look and coders to concentrate on what the application will do

Concepts of MVVM Three broad categories of objects –Model Contain data consumed and modified by user Include things like business rule processing, input validation, change tracking and other things relating to system data In database terms, this could be considered as tables, views and stored procedures used to update them

Concepts of MVVM Three broad categories of objects –View UI control that displays data Allows the user to modify the state of the data via keyboard or mouse Shows video, images or whatever else needs to be displayed Bound to the model via databinding

Concepts of MVVM Three broad categories of objects –ViewModel Model of a view (abstraction) Expose properties to which views are bound Including properties that return command objects Notify view of changes via PropertyChangedEvent (INotifyPropertyChanged interface) Collections of data can be updated via ObservableCollections Gets update of data via two way binding in the view

Example XAML and Code Behind Hello World Example Using XAML View bound to ViewModel Binding.xaml

Comments As can be seen, this simple example takes some setting up and increased code When you work on more complicated programs and use inheritance, this becomes much less of an issue There are several different open source templates that can be used to get started

My Experience with MVVM Spent last 8 months developing Silverlight application for Qmastor –Web interface for NSW mines to interact with the new Newcastle Coal Port to manage their coal shipments –Trialled using the MVVM pattern with great success –Other developers in the company then started using it –Likely to be the company defacto standard from now on

Discussion and Code More complicated example Data Entry and Validation Employee database MainPage.xaml

Questions

Links Wikipedia Understanding the MVVM pattern WPF Apps using the MVVM pattern MVVM Light Toolkit Advanced MVVM – Josh Smith