<Window .... PreviewMouseDown="Window_PreviewMouseDown_1"> </Window>
This should work for you.
This fires even if other MouseDown events fire for the components that it contains.
According to Clemens' suggestion in the comments, PreviewMouseDown is a better choice than MouseDown , as it ensures that you cannot stop the event bubble event in another event.
Anders arpi
source share