开发者

How to dynamically bind parent element

开发者 https://www.devze.com 2023-01-05 11:55 出处:网络
I\'m dynamically creating multiple expandable panel in silverlight. Every panel con开发者_如何学Pythontains textbox. I need to bind this textbox to parent expandable panel header property.

I'm dynamically creating multiple expandable panel in silverlight. Every panel con开发者_如何学Pythontains textbox. I need to bind this textbox to parent expandable panel header property.

How to do it dynamically?


<Textbox.Text="{Binding Path=Header RelativeSource={RelativeSource Mode="FindAncestor" AncestorType="{x:Type ExpandablePanel}}}"/>
0

精彩评论

暂无评论...
验证码 换一张
取 消