0
比方說我有這樣的XAML代碼:如何獲取UIElement在其父項中的當前位置?
<StackPanel Name="pan">
<Button Name="but1" Content="Helllo" />
<Button Name="but2" Content="all" />
<Button Name="but3" Content="World" />
</StackPanel>
我身後我的代碼我想找出什麼是內pan
的but2
座標。我該怎麼做 ?