Duration: 16 minutes
Summary: In this video, we start talking about binding. We have seen binding before, but here we will talk about it in more detail. Binding can be OneTime, OneWay, or TwoWay. As the names imply: with OneTime, we get the binding once and nothing happens afterwards. The value from the source gets to the target and that is it. In OneWay, any changes in the source will be reflected in the target. With TwoWay, any changes in the source will be reflected in the target and vice-versa. We will see in this video how we can bind an Ellipse’s opacity to a slider. So when the value of the slider changes, the ellipse’s opacity changes. We will also apply the same idea to a more practical example: We have a rectangle that represents how high the interest is, and as the value of the slider changes the height of the rectangle changes to show you the interest rate visually.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: Silverlight 5 and Visual Studio 2010
Keyword: Silverlight 5, Visual Studio 2010, XAML, Border, StackPanel, Margin, Rectangle, Grid, Slider, Ellipse, Fill, RadialGradientBrush, DockPanel, Opacity, Binding, ElementName, Path, Orientation, Mode.