Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Binding Parent control property to child control property
2 replies. Latest Post by blender3dlive on July 14, 2009.
(0)
RenukaPa...
Member
161 points
173 Posts
12-18-2008 11:59 PM |
Hi,
Is it possible to Bind the Parent Control Property to Child Control Property?
Thanks
Renu
Amanda W...
All-Star
17241 points
1,466 Posts
12-23-2008 4:10 AM |
Hi Renu,
RenukaPalani:Is it possible to Bind the Parent Control Property to Child Control Property?
In fact, Silverlight does not support to bind to another controls' properties.
But we would suggest that you can try to create a class that implement the Inotifypropertychanged interface and bind both controls to it, so when one properties changed and aother can be notified.
blender3...
70 points
38 Posts
07-14-2009 12:51 AM |
Hello RenukaPalani,
Silverlight 3 now supports templatedParent and self binding.
RelativeSource
You may be also interested in Element to Element binding
{Binding Value, Mode=OneWay, ElementName=MySlider}
see
http://silverlight.net/learn/learnvideo.aspx?video=187309
Regards,
Jason Schluter