Data binding, at its core, provides a simple way for a Silverlight developer to work with data by separating the display module from the data management module. By establishing a connection between data objects from the backend and the UI layer, you get a mechanism that lets you update UI elements when data changes, or the other way around without the use of code.
The bound data can flow in three distinctive modes as follows:
OneTime:
The target of the bind operation will update with the source only when it's created. For example, if we have aTextBlock
element bound to a property, theTextBlock
element will only display the value the property had whenTextBlock
was rendered.TextBlock
won't change its value even if the backend property changes later on.OneWay:
The target of the bind operation will update with the source every time the source changes. Using the same example as before, if theTextBlock
element is bound to a property using the one-way binding...