Data Binding – OneWay & TwoWay

Data Conversion

  • To string – done using .ToString() method
  • From string – uses Xaml parser’s logic
  • Converters required when not directly assigned in code

One way listens to change notifications

  • INotifyPropertyChanged
  • DependencyProperty
  • INotifyCollectionChanged / IObservableVector

Two way

  • UI property Needs to be a DP
  • TextBox – Special cased, waits for LostFocus to occur