System.Windows.Point pp = Mouse.GetPosition(e.Source as FrameworkElement);//WPF方法 //pp.X = 0; pp.Y= 0; System.Windows.Point ppp = (e.Source as FrameworkElement).PointToScreen(pp);//WPF方法