Binding Modes In Xaml

Binding modes in XAML

Hello everybody,

today I want to write few words about binding in XAML.

So there are four ways of binding in XAML.

  1. One way
  2. Two way
  3. One way to source
  4. One time

If to speak about them more, then here it goes additional definitions:

  • OneWay : source property updates target property
  • TwoWay: source or target updates the other
  • OneWayToSource: source is updated when target is updated
  • OneTime: executed only once for initialization of target property

What is important to notice for notification of UI, there is a need for implementing INotifyPropertyChanged interface. Without it changes in source properties will not become propogated to target.

No Comments

Add a Comment
Comments are closed