1
我如何找到'SomeRectangle'的位置?如何找到一些上层控制的控制位置?
这个矩形是我需要从'somepicture'裁剪的位置和大小,它实际上是出现在主网格背景中的图片。
<Rectangle x:Name="SomeRectangle" Height="50" Width="50" Stroke="Red" HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="5" MinHeight="5" />