hi in this post you will get how to get hand icon to mouse pointer in winrt apps..
by calling the following methods in pointer exited and button moved respectively it will shown you the hand icon at location where you called these but you need to exit the pointer if you didnt exited the pointed it will show hand icon in through out the app so be carefull regarding this.
protected virtual void HyperlinkButton_PointerExited(object sender,
PointerRoutedEventArgs e)
{
Window.Current.CoreWindow.PointerCursor =
new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Arrow,2);
}
protected virtual void HyperlinkButton_Moved(object sender, RoutedEventArgs e)
{
Window.Current.CoreWindow.PointerCursor =
new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Hand, 1);
}
No comments:
Post a Comment