Databinding is the process of establishing a connection between a
source and target. In Silverlight databinding, the source is the CRL
object and the target is Silverlight controls (XAML Elements). Let me
show you a visual.
OneWay data binding: In this data binding, the source will immediately inform about changes to the target control. We will be using this binding only for frequently changed elements. This is the default mode.
TwoWay data binding: This happens in bidirectional mode. Whenever any change occurs in the backend or the CRL object, it will inform to the XAML controls immediately, and vice versa.
Binding Modes
There are three types of data binding that happens in Silverlight applications between a source and target.- OneTime data binding
- OneWay data binding (default mode)
- TwoWay data binding
OneWay data binding: In this data binding, the source will immediately inform about changes to the target control. We will be using this binding only for frequently changed elements. This is the default mode.
TwoWay data binding: This happens in bidirectional mode. Whenever any change occurs in the backend or the CRL object, it will inform to the XAML controls immediately, and vice versa.
No comments:
Post a Comment