Lets say I have this XAML code:
<StackPanel Name="pan">
<Button Name="but1" Content="Helllo" />
<Button Name="but2" Content="all" />
<Button Name="but3" Content="World" />
</StackPanel>
I my code behind I want to find out what are the coordinates of but2
within pan
. How do I do it ?