开发者

WPF drag cursor in default cursors

开发者 https://www.devze.com 2023-01-04 13:22 出处:网络
I\'d like to use the default drag mouse cursor on mouse-over a UIElement to indicate a control is draggable.

I'd like to use the default drag mouse cursor on mouse-over a UIElement to indicate a control is draggable.

The cursor that looks like an arrow and a FocusVisual rectangle with an overlapping plus sign inside a rectangle. Basically, the cursor that is used when setting DragDropEffects.Copy during a drag operation.

However I'd like to use this cursor like all the other types by using开发者_如何学C something like Cursor="DragCopy". Unfortunately it seems this cursor isn't available. I don't want to use a custom cursor because of compatibility and visual standards between OS.

Any suggestions?


You'll need to p/invoke the SetCursor Win32 method.

0

精彩评论

暂无评论...
验证码 换一张
取 消