O'Reilly logo

Microsoft Silverlight 5 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Ancestor RelativeSource binding

Applies to Silverlight 5

In Silverlight 5, a new feature was introduced called the Ancestor RelativeSource binding. This type was already available to WPF developers but with the introduction of version 5, also made its appearance in Silverlight. Using this binding, we can bind to relative source elements easily. This feature is useful in data templates. In this recipe, we'll extend the Silverlight banking sample once again to including this binding type.

Getting ready

For this recipe, a starter solution is provided in the Chapter03/ SilverlightBanking_Relative_Source_Starter folder. The complete solution can be found in the Chapter03/SilverlightBanking_Relative_Source_Completed folder.

How to do it...

When ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required