Skip to main content

Microsoft Silverlight

Answered Question Binding Parent control property to child control propertyRSS Feed

(0)

RenukaPalani
RenukaPa...

Member

Member

161 points

173 Posts

Binding Parent control property to child control property

Hi,

 

Is it possible to Bind the Parent Control Property to Child Control Property?

 

Thanks

Renu

Amanda Wang - MSFT
Amanda W...

All-Star

All-Star

17241 points

1,466 Posts

Answered Question

Re: Binding Parent control property to child control property

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.

Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

blender3dlive
blender3...

Member

Member

70 points

38 Posts

Re: Binding Parent control property to child control property

 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

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities