Reputation: 73
I am currently displaying a busy/wait cursor using Mouse.OverrideCursor = Cursors.Wait
. But when the wait cursor is on it is still able to recognize the mouse clicks happened during that time. Is there any way to disable the mouse clicks?
Upvotes: 4
Views: 2922
Reputation: 708
this.IsHitTestVisible = false;
but a more elegant solution would be (assuming you are using MVVM pattern) to reject the mouse click in the RelayCommand CanExecute
method.
Upvotes: 5