Silverlight 2 Beta 2 Tutorial
Data binding is a connection between the User Interface and a business object or other data provider . The User Interface object is called the target, the provider of the data is called the source. Data-binding assists with the separation of the User Interface level of your application from the other layers of your application (business objects, data, and so forth). This separation of responsibility is further reinforced by decoupling the UI target from its source through the use of a Binding object.
…
Data Binding Modes
The Mode (which is of type BindingMode) is an enumeration with three possible values as shown here,
OneTime binding sets the target and then the binding is completed. This is great for displaying data that rarely or never changes
OneWay binding sets the target and keeps it up to date as the source changes. This is great for displaying data that the user is not permitted to change.
TwoWay binding sets the target and keeps the target up to date as the source changes and keeps the source up to date as the user changes the target or changes something else in the application that will cause your application to change the source. If you were building an on line bookstore and were displaying information about a book, you might use OneTime binding for the Title and Author (once you get them, they are not going to change) and OneWay binding for the price (someone might mark down the price during the day) but you’d want TwoWay binding for the Quantity on hand.
…
Website: download.microsoft.com | Filesize: 731kb
No of Page(s): 13
Click here to download Silverlight 2 Beta 2 Tutorial.
Related Tutorial
Tags: .NET, data binding
Comments
Leave a Reply