Does anyone know how to hide/show a cursor in WPF?
Something like:
System.Windows.Forms.Cursor.Hide();
and
System.Windows.Forms.Cursor.Show();
But, obviously, the Forms assembly does not exist anymore.
Thanks!
-
-
Mouse.OverrideCursor = Cursors.None;
to remove the override, I believe you set Mouse.OverrideCursor = null;
Hope these also help:
See this post from the WPF forum.
Here is a search query for all topics there with the word "Cursor" in it.
MSDN: FrameworkElement.Cursor
MSDN Sample: Changing the Cursor Type SampleThanks, Rob
Rob Relyea | Program Manager, WPF & Xaml Language Team
robrelyea.com | /blog | /wpf | /xaml -
Rob,
That works like a charm. Thank you very much.
Brett -
Rob Relyea said:
Mouse.OverrideCursor = Cursors.None;
to remove the override, I believe you set Mouse.OverrideCursor = null;
Hope these also help:
See this post from the WPF forum.
Here is a search query for all topics there with the word "Cursor" in it.
MSDN: FrameworkElement.Cursor
MSDN Sample: Changing the Cursor Type SampleThanks, Rob
Rob Relyea | Program Manager, WPF & Xaml Language Team
robrelyea.com | /blog | /wpf | /xamlGreat, works fine.
A good place to re-show the cursor is in MouseMove event.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.