haithambradai / gong-wpf-dragdrop

Automatically exported from code.google.com/p/gong-wpf-dragdrop
0 stars 0 forks source link

itemscontrol datatemplate usercontrol error #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from the codeproject demo, i changed the listbox to itemscontrol
2. added a datatemplate with usercontrol root
3. in DragInfo.ctor itemParent remains null

Original issue reported on code.google.com by Rock8...@gmail.com on 23 Feb 2011 at 7:15

Attachments:

GoogleCodeExporter commented 9 years ago
I had an ItemsControl as well, but gong requires a SelectedItem property so it 
won't work. We have to use a ListBox instead.

Original comment by louis.ko...@gmail.com on 13 Jan 2012 at 5:35

GoogleCodeExporter commented 9 years ago
I have a ListView whose View is a GridView. Within the ListView rows there is a 
GridViewColumn.CellTemplate consisting of a DataTemplate set to 
<ContentPresenter Content="{Binding}"> which picks up a DataTemplate specific 
to the item class. That template contains a RichTextBox.

Dragging over that cell also causes itemParent to remain null in the DragInfo 
constructor.

Original comment by Richard....@gmail.com on 19 Jan 2013 at 2:38