Data Binding Without INotifyPropertyChanged Image Credit:
-
Upload
brian-george -
Category
Documents
-
view
234 -
download
0
description
Transcript of Data Binding Without INotifyPropertyChanged Image Credit:
Data BindingWithout 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+x2)
-3 -2 -1 0 1 2 30
0.2
0.4
0.6
0.8
1
1.2
Stateful View Models
PersonListViewModel PersonViewModelFirstNameLastNameFullName
Name Changed
Name Changed
Person Selected
Person Selected
PersonSummaryFullName
Stateless View Models
PersonListViewModel PersonViewModel
PersonList PersonFirstNameLastName
PersonSummary
NavigationSeletedPerson
IndependentDependent
Two Way Connection
**
UpdatingPersonViewModel
PersonView
Person(Model)
TextBlock get _firstName_lastName
FullName
DependentIndependent
Independent“FullName”
ModifyingPersonViewModel
PersonView
Person(Model)
TextBlock get _firstName_lastName
DependentIndependent
Independent
TextBox FirstName set
“FullName”
MVVM Idioms• Dependent Properties• Dual• Tuple• Navigation• Equals/GetHashCode• Command Binding
Michael L Perry• @MichaelLPerry• [email protected]• updatecontrols.codeplex.com• updatecontrols.net/doc/inpc