Your SlideShare is downloading. ×
Mvvm + behaviors
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Mvvm + behaviors

1,959
views

Published on


0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,959
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MVVM + BEHAVIORS Better Silverlight Programing
  • 2. MVVM Pattern ICommand PropertyChanged
  • 3. 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
  • 4. Behaviors in Silverlight
  • 5. Behavior DEMO
  • 6. Behavior DEMO
  • 7. 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
  • 8. GDEIC.AppFx.ViewModel  BufferedEventTrigger  Buffer interaction event  Filter PropertyChanged with propertyName  Invoke ActionWith Dispatcher
  • 9. Real Application Demo
  • 10. Real Application Demo Controller Interface is a contract between Server and Client
  • 11. Real Application Demo Client sideViewModel with Command
  • 12. Real Application Demo Command Implementation Details
  • 13. Real Application Demo Final XamlView, no code needed
  • 14. 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