在拖动时,我在Silverlight中看不到帮助线 [英] while dragging, I don't see helper-lines in Silverlight

查看:156
本文介绍了在拖动时,我在Silverlight中看不到帮助线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Silverlight 4,Toolkit

拖动 TARGET CONTROL上的某个项目时,

During dragging an item on TARGET CONTROL, there are NOT visible lines showing (during mouse move) actual position where will be dragged item put on

(例如,在项目之间,内部项目之前,之前,显示(在鼠标移动期间)实际位置将被拖动项目项目,...)

(for example, between items, inside item, before item, …)

源代码控制

source control

    <toolkit:ListBoxDragDropTarget AllowDrop="False" AllowedSourceEffects="Copy, Link, Scroll">
      <ListBox ItemsSource="{Binding ToolboxItems}">
             <ListBox.ItemTemplate>
                 <DataTemplate> <!-- some binding --> </DataTemplate>
           </ListBox.ItemTemplate>   
      </ListBox>
   </toolkit:ListBoxDrag...>

目标控制

target control

<toolkit:TreeViewDragDropTarget AllowDrop="True">
   <sdk:TreeView ItemsSource="{Binding ScriptRows}"  
     <sdk:TreeView.ItemTemplate>
      <sdk:HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
         <!-- some binding -->
     </sdk:HierarchicalDataTemplate>
   </sdk:TreeView.ItemTemplate>
</sdk:TreeView>

有人可以帮忙我说出什么问题?
谢谢

推荐答案

好的,因为源类型必须是相同的接口(类型)作为TARGET

Ok, it's because the source type MUST be the same interface (type) as TARGET

这篇关于在拖动时,我在Silverlight中看不到帮助线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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