-
Book Overview & Buying
-
Table Of Contents
Mastering LOB Development for Silverlight 5: A Case Study in Action
We have already used dependency properties, but without knowing that those properties on which we were establishing a data binding were somewhat special. From the LOB point of view, dependency properties allow us to establish their value in a declarative way and are capable of notifying a change in them. Also, they can establish data binding, so that they are able to propagate a change notification between properties.
Dependency properties is the way to show properties in the UserControls which are generated and establish values on them, creating a communication channel between properties.
Let us see an instance. We will modify the first example we posed in this chapter, for it to show the result of the translation in a UserControl:
Create a new project named HelloWorldDP and copy the content we had in the original sample (XAML and Code-Behind). The finished result can be seen in the following screenshot:

Once you've added the content of the previous sample, add a...
Change the font size
Change margin width
Change background colour