SlideShare a Scribd company logo
MVVM + BEHAVIORS
Better Silverlight Programing
MVVM Pattern
ICommand
PropertyChanged
What is Behavior
 A Behavior is in essence a reusable piece of
interactivity that can be applied directly to
user interface elements
 With Behavior, we can do interaction with out
code
 Behavior is reusable library, and can be
shared
Behaviors in Silverlight
Behavior DEMO
Behavior DEMO
GDEIC.AppFx.ViewModel
 ViewModelBase
 Implements INorifyPropertyChanged
 IsBusy Property
 CanInvokeCommand Property
 ShowError virtual method can be overrided
 CommandBase
 Basic implementation of ICommand
 ViewModelCommand
 Use withViewModel base
GDEIC.AppFx.ViewModel
 BufferedEventTrigger
 Buffer interaction event
 Filter PropertyChanged with propertyName
 Invoke ActionWith Dispatcher
Real Application Demo
Real Application Demo
Controller Interface is a contract between Server and Client
Real Application Demo
Client sideViewModel with Command
Real Application Demo
Command Implementation Details
Real Application Demo
Final XamlView, no code needed
MVVM + Behaviors Conclusion
 View is completedly separate with Code
 For Designers, Behavior is easy to use
 Behavior is optimize for Blend, with blend,
behaviors can be added to elements with
drag and drop

More Related Content

PPTX
Reactive web applications using MeteorJS
PDF
Rits Brown Bag - React Native and Salesforce
ODP
Angular js up & running
PPTX
AngularJS Overview
PPTX
Moving Toward a Modular Enterprise - All About the API Conference 2016
PDF
apidays LIVE Australia 2021 - Designing Embedded Platforms by Jeremy Glassenb...
PDF
Itroducing Angular JS
PPTX
Dotnet programmers
Reactive web applications using MeteorJS
Rits Brown Bag - React Native and Salesforce
Angular js up & running
AngularJS Overview
Moving Toward a Modular Enterprise - All About the API Conference 2016
apidays LIVE Australia 2021 - Designing Embedded Platforms by Jeremy Glassenb...
Itroducing Angular JS
Dotnet programmers

What's hot (13)

PDF
apidays LIVE Australia 2021 - From apps to APIs: how no-code is transforming ...
PDF
Architecting eCommerce APIs - Gluecon 13
PDF
DOCX
Fabcode => LambdaZen
PDF
API:World 2016 - Applying Domain Driven Design to APIs and Microservices
PDF
PDF
E031202024029
PPTX
Designing APIs and Microservices Using Domain-Driven Design
PPTX
Hybird mobile application development
PPTX
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
PDF
Api clarity webinar
PPTX
Angular js
apidays LIVE Australia 2021 - From apps to APIs: how no-code is transforming ...
Architecting eCommerce APIs - Gluecon 13
Fabcode => LambdaZen
API:World 2016 - Applying Domain Driven Design to APIs and Microservices
E031202024029
Designing APIs and Microservices Using Domain-Driven Design
Hybird mobile application development
Thinking Serverless (AWS re:Invent 2019 chalk talk SVS213). Solutions slides.
Api clarity webinar
Angular js
Ad

Viewers also liked (8)

PPTX
Silverlight 开发简介
PPT
Vodafone360 shop
DOCX
Bring a copy of your resume for your future placements
DOCX
Critical analytical thinking at stanford's gsb 2011
PPT
The Business Capital By Aadhar Group at Knowledge Park 5 in Noida Extension
PPTX
Metodologías participativas (1). [downloaded with 1st browser]
PDF
Cross platform development - by Uxebu
PDF
Raj Residency Project at Noida Extension by Addela Group
Silverlight 开发简介
Vodafone360 shop
Bring a copy of your resume for your future placements
Critical analytical thinking at stanford's gsb 2011
The Business Capital By Aadhar Group at Knowledge Park 5 in Noida Extension
Metodologías participativas (1). [downloaded with 1st browser]
Cross platform development - by Uxebu
Raj Residency Project at Noida Extension by Addela Group
Ad

Similar to Mvvm + behaviors (20)

PPTX
Introduction to MVVM Framework
PPTX
Advanced MVVM in Windows 8
PPTX
Mvvm in the real world tccc10
PPTX
Applied MVVM in Windows 8 apps: not your typical MVVM session!
PPTX
Adopting MVVM
PDF
Introduction To MVVM
PPTX
Behavior lab
PPTX
Stephen Kennedy Silverlight 3 Deep Dive
PPTX
MVVM - Model View ViewModel
PPTX
Understanding The MVVM Pattern (TechDays Belgium)
PPTX
MVVM+MEF in Silvelight - W 2010ebday
PPTX
MVVM ( Model View ViewModel )
PPTX
Building an enterprise app in silverlight 4 and NHibernate
PPTX
Training: MVVM Pattern
PPTX
MVVM_Ashraf
PPTX
MVVM with WPF
 
PPTX
WPF For Beginners - Learn in 3 days
PPTX
Meetup - Getting Started with MVVM Light for WPF - 11 may 2019
PPT
Model View ViewModel
KEY
What's new in Silverlight 5
Introduction to MVVM Framework
Advanced MVVM in Windows 8
Mvvm in the real world tccc10
Applied MVVM in Windows 8 apps: not your typical MVVM session!
Adopting MVVM
Introduction To MVVM
Behavior lab
Stephen Kennedy Silverlight 3 Deep Dive
MVVM - Model View ViewModel
Understanding The MVVM Pattern (TechDays Belgium)
MVVM+MEF in Silvelight - W 2010ebday
MVVM ( Model View ViewModel )
Building an enterprise app in silverlight 4 and NHibernate
Training: MVVM Pattern
MVVM_Ashraf
MVVM with WPF
 
WPF For Beginners - Learn in 3 days
Meetup - Getting Started with MVVM Light for WPF - 11 may 2019
Model View ViewModel
What's new in Silverlight 5

Mvvm + behaviors