Image to Cursor / Custom Cursor

后端 未结 1 1777
醉梦人生
醉梦人生 2021-01-16 18:30

I am working on a WPF Application. We created a custom component using WPF Custom Control Library project. In this, when we drag and drop, the mouse cursor should change, ba

相关标签:
1条回答
  • 2021-01-16 18:33

    The Cursor class has a constructor that takes a stream (containing a cur or ani format) and a filename. You can convert an image to a cur file using code from this SO answer.

    Hope this helps!

    0 讨论(0)
提交回复
热议问题