Jason's blog
We have so many needs in our life, but at the end of the day, all we need is...to be needed.
摘要: Silverlight 4: Drag&drop with EventToCommand翻译这里翻译一个关于拖拽的EventToCommand的实例。首先,我们创建一个可拖拽的Silverlight4应用程序,如图可以使用VS2010或者blend4来创建 我们需要为应用程序中的文件定义为拖动目标,你可以将任何UI元素设置为可拖动,比如主Grid(这样可以让整个应用程序拖拽的目标)或其他的。为了简便,在我们的例子中,我们使用主Grid作为拖拽目标。设置AllowDrop属性为True,如图代码如下:<Gridx:Name="LayoutRoot"AllowDr 阅读全文
posted @ 2011-05-03 17:38 Jason .Z 阅读(1003) 评论(4) 推荐(1) 编辑