1 / 12

Data Binding

Data Binding. Without INotifyPropertyChanged. Image Credit:. Slides and Code. updatecontrols.net/doc/ inpc. Michael L Perry. qedcode.com @ MichaelLPerry Update Controls Correspondence Client App Dev. Dan Bricklin and Bob Frankston. y=1/(1+x 2 ). Stateful View Models.

zahur
Download Presentation

Data Binding

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Data Binding Without INotifyPropertyChanged Image Credit:

  2. Slides and Code • updatecontrols.net/doc/inpc

  3. Michael L Perry • qedcode.com • @MichaelLPerry • Update Controls • Correspondence • Client App Dev

  4. Dan Bricklin and Bob Frankston

  5. y=1/(1+x2)

  6. Stateful View Models PersonListViewModel PersonSummary FullName PersonViewModel FirstName LastName FullName Person Selected Name Changed Person Selected Name Changed

  7. Stateless View Models PersonListViewModel PersonSummary PersonViewModel PersonList Person FirstName LastName Navigation SeletedPerson

  8. Two Way Connection Dependent * Independent *

  9. Updating Person View Person ViewModel Person (Model) FullName TextBlock get _firstName _lastName Dependent Independent Independent “FullName”

  10. Modifying Person View Person ViewModel Person (Model) TextBlock get _firstName FirstName _lastName TextBox set Dependent Independent Independent “FullName”

  11. MVVM Idioms • Dependent Properties • Dual • Tuple • Navigation • Equals/GetHashCode • Command Binding

  12. Michael L Perry • @MichaelLPerry • mperry@mallardsoft.com • updatecontrols.codeplex.com • updatecontrols.net/doc/inpc

More Related