How can I hide the cursor in transparent WPF window? -


how can hide cursor in wpf window transparent (alpha=0).

i tried usual

this.cursor = system.windows.input.cursors.none;

and works on areas content alpha > 0 when cursor moves area - in same window - background transparent cursor re-appears.

i added system.windows.input.mouse.overridecursor = system.windows.input.cursors.none; didn't help.

i realize setting alpha of background 1 might solution various reasons creates other problems...

maybe work-around can create tiny non-transparent area somewhere, , move mouse there before hiding it:

// coordinates of non-transparent area: var x = 10; var y = 10; system.windows.forms.cursor.position = new system.drawing.point(x, y); this.cursor = system.windows.input.cursors.none; 

Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -