Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SL5 中是否有通过名称绑定到祖先的绑定模式?
就像是:
{Binding AParentProp, RelativeSource={RelativeSource FindByName="MyParent"}
您可以像这样绑定到特定的命名元素:
{Binding Property, ElementName=name}
你这样命名你的元素:
<Grid x:Name="name" ....> </Grid>