Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WPF:如何在 Window_Loaded(object sender, RoutedEventArgs e) 事件中获取鼠标位置
你试过使用PointToScreen(Mouse.GetPosition(this))吗?
PointToScreen(Mouse.GetPosition(this))
(在System.Windows.Input命名空间中)
System.Windows.Input