void t_GotFocus(object sender, RoutedEventArgs e)
{
var tb = sender as TextBox;
var gt = tb.TransformToVisual(null);
Point p = gt.Transform(new Point(0, 0));
MessageBox.Show(p.X + " " + p.Y);
}
silverlight 获取控件坐标 没有canvas
最新推荐文章于 2021-05-31 09:55:10 发布