如何使用自定义光标C#? [英] How can I use custom cursor C#?

查看:106
本文介绍了如何使用自定义光标C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,我想问你首先如何添加自定义光标到我的c#应用程序,我有(.cur)文件?

well i wanna ask you first how can I add a custom cursor to my c# application where i have the (.cur) file?

秒我想添加两个自定义的游标是开放的手和闭合的手(像在adobe acrobat阅读器或windows中使用的那些照片viewr),因为我有一个拖放功能。

second i want to add two custom cursors which are open hand and closed hand (like the ones used in the adobe acrobat reader or the ones used in windows photo viewr) because i have a drag n drop functionality.

所以,请在哪里可以找到.cur文件到那些curosrs,我搜索了整个网络,但我没有什么。我发现一个论坛上说,我可以找到打开的手光标在Microsoft表达式混合中的程序集内的资源之一。我有.Net反射器,我从该组件中提取.cur文件..但我没有找到一个闭合的手光标!

So please where can i find the .cur files to those curosrs, i have searched the whole web but i got nothing. i have found one on a forum said that i can find the open hand cursor in one of the resources inside an assembly in the Microsoft expression blend. I have the .Net reflector and i extracted the .cur file from that assembly .. but i didn't find a closed hand cursor!!!

因此,请您帮助我。

感谢

推荐答案

Silverlight不支持真正的自定义光标。最好的做法是在鼠标移动时移动关于显示的图像。

Silverlight does not support true custom cursors. The best you can do is move an image about the display as the mouse moves.

这篇关于如何使用自定义光标C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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