且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义Silverlight控件工具包拖放的外观

更新时间:2023-10-11 09:59:22

只需查看文档, DragDropTarget 有一个 GetInsertionIndicatorGeometry ,我怀疑这是拖动时显示的各种符号。

Just reviewing the docs it would appear that the DragDropTarget has a GetInsertionIndicatorGeometry which I suspect is responsible for the various symbols shown when dragging.

因此,为了替换这些符号,您将需要继承您正在使用的特定目标类型,并覆盖此受保护的成员以注入自己的几何。

Hence for you to replace these symbols you will need to inherit the specific target type you are using and override this protected member to inject your own geometries.