Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾经MouseDragElementBehavior让用户在画布上拖放形状:
MouseDragElementBehavior
MouseDragElementBehavior dragBehavior = new MouseDragElementBehavior(); dragBehavior.Attach(myShape);
现在,我想知道 myShape 何时被移动以及 myShape 何时被丢弃。您能否建议一个在 myShape 移动时打印鼠标坐标并在 myShape 被丢弃时打印“Dropped”的代码?非常感谢 !
MouseDragElementBehavior 类有
事件。我相信订阅那些会做你需要的