阅读背景:

WPF - 将相对于MainWindow的点转换为相对于子控件的坐标

来源:互联网 

Is it possible to translate a point relative to MainWindow to be relative to one of its child controls? For example, say a control's upper left corner was located at 500, 500 relative to MainWindow what code would convert that number to (0, 0)? I'd like the solution to be agnostic of the layout mechanism (i.e. not require me to parent the control in a Canvas and use the Top and Bottom methods).Is it possible to translate a point relative to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: