2012-09-10 5 views

답변

1

TransformToVisual을 사용하여이 작업을 수행 할 수 있습니다. 후대의 페이지에서 Visual.TransformToVisual MSDN

: 당신의 도움에 대한

<StackPanel Name="myStackPanel" Margin="8"> 
    <TextBlock Name="myTextBlock" Margin="4" Text="Hello, world" /> 
</StackPanel> 

// Return the general transform for the specified visual object. 
GeneralTransform generalTransform1 = myStackPanel.TransformToVisual(myTextBlock); 

// Retrieve the point value relative to the child. 
Point currentPoint = generalTransform1.Transform(new Point(0, 0)); 
+0

덕분에 여기 좋은 사례가있다 –