我想将 wpf 中的光标更改为自定义 .cur 文件?
我想将鼠标指针更改为应用程序中的自定义光标。
因此,当我的应用程序启动时,我想要自定义光标,当它停止时,我希望它消失。
如何在 wpf 代码后面的 c# 中执行此操作?
I want to change my mouse pointer to an custom cursor in my application.
So when my application starts, i want the custom cursor, and when it stops i want it gone.
How to do this in c# behind the code in wpf?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你可以这样实现。简单的步骤。只需提供 .cur 图像路径并将其与 Cursor 绑定即可。
谢谢
You Can implement it this way. Simple steps. Just have to give the .cur image path and bind it with Cursor.
Thank You
您无法更改整个操作系统环境的光标,只能更改 WPF 窗口。
按照这篇文章了解如何设置自定义光标
You can not have the cursor changed for the whole operating system environment, only the WPF window.
Follow this post on how to set a custom cursor