[c#] Changing the cursor in WPF sometimes works, sometimes doesn't