【发布时间】:2014-01-10 18:27:17
【问题描述】:
这是在 XAML 中的 DataGrid 中:
ItemsSource="{Binding Path=NewContactList,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" ItemsPanel="{StaticResource panelTemplate}"
ItemTemplate="{StaticResource ListTemplate}"
DragDrop:DragDropHelper.IsDragSource="true"
DragDrop:DragDropHelper.IsDropTarget="true"
DragDrop:DragDropHelper.DragDropTemplate="{StaticResource DragTemplate}"
我想在 Codebehind 中创建 DataGrid,但我知道如何设置绑定和我的 DragDrop:DragDropHelper
有人可以帮我吗?
【问题讨论】: