This is in a DataGrid in XAML:
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}"
I want to create the DataGrid in Codebehind, but i know how to set the Bindings and my DragDrop:DragDropHelper
Could somebody help me?