原文:
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
posted on 2018-08-14 11:37 阅读( ...) 评论( ...)