首页 > Windows开发 > 详细

Wpf鼠标点击坐标转为屏幕坐标/后台重新设置在Canvas和Grid上的位置

时间:2016-05-06 19:12:32      阅读:825      评论:0      收藏:0      [点我收藏+]
Point getP = PointToScreen(Mouse.GetPosition(this));

 

DockPanel.SetValue(Canvas.LeftProperty, 1.0);
            DockPanel.SetValue(Canvas.TopProperty , 5.0);
            DockPanel.SetValue(Grid.RowProperty, 5);
            DockPanel.SetValue(Grid.ColumnProperty, 3);

 

Wpf鼠标点击坐标转为屏幕坐标/后台重新设置在Canvas和Grid上的位置

原文:http://www.cnblogs.com/ouylvr0625/p/5466673.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!