开发者

How to dynamically bind parent element

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜