thanks for looking at that Steve and pinpointing my problem.
Last question - when I add the following to my XAML
for the "docTemplate"
dnd:DragDrop.IsDropTarget="True"
dnd:DragDrop.IsDragSource="True"
dnd:DragDrop.DropHandler="{Binding}"
and Implement the IDropTarget Interface in my viewmodel,
#region IDropTarget Members
void IDropTarget.DragOver(DropInfo dropInfo)
{
throw new NotImplementedException();
}
void IDropTarget.Drop(DropInfo dropInfo)
{
throw new NotImplementedException();
}
#endregion
the exception "Collection is read-only" is thrown before
I ever make it to either of the IDropTarget Members (I have
breakpoints set).
I then tried adding the GongSolutions.Wpf.DragDrop Project to my
solution, and I see that
the DefaultDropHandler Drop Method is what is called, even though I
have
attempted to override the DragOver and Drop methods in my viewmodel.
Does that make sense? Once I get the to the Drop Method, I can
manipulate
the XML file myself, that is not an issue.
thanks again, your responses have been very helpful.
Rob