WPF获取相对位置、坐标的方法

原文: WPF获取相对位置、坐标的方法 1.获取鼠标在控件中的坐标: 1 private void item_MouseDown(object sender, MouseButtonEventArgs e) 2 { 3 Point point = e.GetPosition(lbl); 4 5 } 6 7 //或者直接使用Mouse类的静态方法GetPos
相关文章
相关标签/搜索