Search code examples
microsoft-metrowindows-runtimemouse-cursor

Hide cursor or have custom cursor in Windows 8 Metro


I want to know if there is a way to hide cursor in Windows 8 Metro mode. I found this answer, but then I don't know how to obtain the "unique resource id" for the second parameter of the cursor constructor (below).

Window.Current.CoreWindow.PointerCursor = 
                new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Custom, 1);

EDIT: Forgot to mention that I need to handle mouse events normally so the answer below of setting cursor to null will not suffice.


Solution

  • Set the cursor to a custom cursor but make it just be blank...this allows you to track it like being a normal cursor.