Silverlight / WPF - what is ancestor binding and what is relative source binding in silverlight 5 using jounce

Asked By Ramachandran on 29-Jun-12 02:53 AM
Jitendra Faye replied to Ramachandran on 29-Jun-12 02:55 AM
Reference from-

http://beyondrelational.com/modules/4/whatisnew/368/features/7252/silverlight-5-ancestor-relative-source-binding-to-bind-to-property-of-a-parent-control.aspx


This gives the controls to bind the properties of its parent controls in any level. To bind the property of its parent control, we need to specify 2 arguments.
  1. Ancestor Type : Type of the control, for which we wants to access its property(Eg:StackPanel,Grid etc)
  2. Ancestor Level (Optional) : Level of the control to consider, when parents of same type available in multiple levels . Its default value will be 1.


Refer these links-

http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2011/04/26/silverlight-5-beta-rough-notes-ancestor-relative-binding.aspx