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}}}"/>
精彩评论