WPF catch user mouse movement
问题 I have program that moving mouse asynchronous. In my program async process can be aborted by pressing on a button. How it can be possible to catch event when user moving mouse and than abort running async process? And also when mouse moving outside of wpf control. Xaml: <Button Height="20" Width="40" Click="Button_Click" ></Button> Code: namespace WpfApplication2 { public partial class MainWindow : Window { WorkWithMouse WWM = new WorkWithMouse(); public MainWindow() { InitializeComponent();