Используйте вложенное событие Mouse.GotMouseCapture .
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
static MainWindow() {
EventManager.RegisterClassHandler(typeof(UIElement), Mouse.GotMouseCaptureEvent, new MouseEventHandler(MainWindow_GotMouseCapture));
}
static void MainWindow_GotMouseCapture(object sender, MouseEventArgs e) {
// e.OriginalSource is a captured element
}
}
Обратите внимание, что захваченный элемент доступен через статическое свойство Mouse.Captured .