dragdropitem的行为 [英] dragdropitem behavior

查看:95
本文介绍了dragdropitem的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一些困难。

在本视频演示中, http://视频。 visitmix.com/MIX09/C01F ,schormann指的是"dragdropitem行为"。 (这似乎是他实际访问的内容,但我无法确定,因为屏幕有点模糊)。

然而,在Blend 3中,我只能找到一个"MouseDragElementBehavior" ;。它似乎没有以相同的方式工作,因为它不适用于项目,可以通过拖动到列表框,如上所述,或将其添加到项目模板。我应该手动添加这种行为吗?

思想?说明?在此先感谢!!


winxnet

解决方案

行为系统是可扩展的。虽然您想要的行为(在项目列表之间拖放)不在框外,但其中一个示例(我认为它是SnowboardSketch - WPF)具有您可以学习的DragDropCopyItemBehavior。

另外,请查看 http://expressionblend.codeplex.com/ 上提供的一些其他行为/触发/操作<登记/>
感谢,
乌尼

I am having a bit of difficulty.

In this video presentation, http://videos.visitmix.com/MIX09/C01F , schormann refers to a "dragdropitem behavior" (and that appears to be what he is actually accessing, though I can't be sure since the screen is a bit blurry).

However, in Blend 3, I can only find a "MouseDragElementBehavior". It does not appear to work in the same manner, as it will not apply to the items, either by dragging onto the listbox, as stated, or adding it to the item template. Should I be adding this behavior manually?

Thought? Instructions? Thanks in advance!!


winxnet

解决方案

The Behaviors system is extensible. While the Behavior that you want (dragging and dropping between lists of items) does not exist outside the box, one of the samples (I think its the SnowboardSketch - WPF one) that has a DragDropCopyItemBehavior that you can learn from.

Also, check out a few additional behaviors/triggers/actions available at http://expressionblend.codeplex.com/

Thanks,
Unni


这篇关于dragdropitem的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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