Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Blend Data Binding Techniques > Understanding Data Binding Modalitie...

6.4. Understanding Data Binding Modalities

Data binding operations support a Mode attribute, which allows you to define how the source and destination are kept in sync during the life of the application. By way of example, you may wish to ensure that the destination is updated when the source changes, but not vice versa. Or, perhaps you do want to make sure that if the destination changes, the source is updated automatically. Specifically, the Mode attribute can be set to any of the values shown here:

  • OneWay: When the source changes, the destination is updated.

  • TwoWay: When the source changes, the destination is updated, and if the destination changes, the source is updated.

  • OneWayToSource:[] This is sort of a "reverse" OneWay setting. If the destination is changed, the source is updated, but not vice versa.

    [] The OneWayToSource mode value is not supported in Silverlight.

  • OneTime: The destination is updated with the source value when the application starts, and then all binding logic is forgotten.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint