I am trying to bind to another property on a parent control and the property is an "attached" property, such as Grid.Row. Anyone know what the syntax is for this
My wild stab is something like this, where in this example I want to retrieve the Grid.Column attached property value for a parent StackPanel and place it as the Button content. But it doesn't work:
---
<
StackPanel Grid.Column="3"> <Button Content="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=StackPanel}, Path=Grid.Column}"></Button></
StackPanel>---
Any ideas If I switch the Path to be something simple like Width, it does work.

Binding Syntax For a Retrieving Attached Properties
markovuksanovic
Grid.Column tries to bind to a property called Grid, then tries to find a property on the result called Column. When dealing with attached properties, you can use the explicit syntax: Path=(Grid.Column)
- Doug