Changing the cursor in WPF sometimes works, sometimes doesn't

Posted by Scott on Stack Overflow See other posts from Stack Overflow or by Scott
Published on 2008-11-20T21:57:17Z Indexed on 2010/05/18 14:20 UTC
Read the original article Hit count: 193

Filed under:

On several of my usercontrols, I change the cursor by using

this.Cursor = Cursors.Wait;

when I click on something.

Now I want to do the same thing on a WPF page on a button click. When I hover over my button, the cursor changes to a hand, but when I click it, it doesn't change to the wait cursor. I wonder if this has something to do with the fact that it's a button, or because this is a page and not a usercontrol? This seems like weird behavior.

© Stack Overflow or respective owner

Related posts about wpf