while dragging, I don't see helper-lines in Silverlight

回眸只為那壹抹淺笑 提交于 2020-01-23 18:54:05

问题


Silverlight 4, Toolkit

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>

Can somebody help me and say what's wrong ? Thank you


回答1:


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



来源:https://stackoverflow.com/questions/4286522/while-dragging-i-dont-see-helper-lines-in-silverlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!