var transform = PresentationSource.FromVisual(this).CompositionTarget.TransformFromDevice;
var mouse = transform.Transform(GetMousePosition());

public System.Windows.Point GetMousePosition()
{
    System.Drawing.Point point = System.Windows.Forms.Control.MousePosition;
    return new System.Windows.Point(point.X, point.Y);
}

 

或者用PointToScreen

相关文章:

  • 2021-06-03
  • 2021-07-03
  • 2021-10-03
  • 2022-12-23
  • 2021-05-30
  • 2021-06-11
  • 2021-12-23
猜你喜欢
  • 2021-09-24
  • 2021-05-22
  • 2022-12-23
  • 2022-01-07
  • 2021-11-29
  • 2022-01-08
相关资源
相似解决方案