Search code examples
c#windows-8windows-runtimewinrt-xamlmouse-cursor

Change cursor in Windows Store Apps


I'm making a Windows Store app in C# and I have a normal TextBlock with a link inside it. And all I want to do it to make the cursor change into a hand when it goes over the text block, but unlike in WPF applications, there is no Cursor propriety. I know is a CoreCursor class in Windows.UI.Core. Am I suppose to use it somehow?


Solution

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