在Windows应用商店应用中更改光标

Met*_*dja 15 c# cursor windows-8 windows-runtime winrt-xaml

我正在用C#制作一个Windows应用商店应用,我有一个普通的TextBlock,里面有一个链接.所有我想要做的就是当光标越过文本块时将光标变为手形,但与WPF应用程序不同,没有Cursor适当性.我知道是一个CoreCursorWindows.UI.Core.我想以某种方式使用它吗?

小智 28

Window.Current.CoreWindow.PointerCursor = 
    new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Hand, 1);
Run Code Online (Sandbox Code Playgroud)