[UWP]如何将指针光标设置为圆而不是窗口默认光标? [英] [UWP] How to set a pointer cursor as a circle instead of a window default cursor?

查看:118
本文介绍了[UWP]如何将指针光标设置为圆而不是窗口默认光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们如何才能将光标设置为圆形而不是默认箭头符号?我见过:

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

但这有一些预定义的值,我可以像手,帮助等一样使用。以同样的方式,而不是一只手,我想要一个未填充的白色圆圈当指针进入图像时光标在图像上方,当指针退出图像时为默认箭头。



请输入任何输入? / p>

谢谢。

解决方案

你好,


你可以创建和设置自定义光标,如
这篇文章 



Hi,

How can we set a cursor as a circle only instead of a default arrow sign? I have seen:

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

But this has some predefined values which I can use like hand, help etc. In the same way, instead of a hand, I want a unfilled white circle as the cursor over the image when pointer enter in the image and a default arrow one when pointer exited the image.

Any inputs please?

Thanks.

解决方案

Hello,

You can create and set custom cursor like in this post 


这篇关于[UWP]如何将指针光标设置为圆而不是窗口默认光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆