On Wed, Jun 30, 2010 at 7:19 PM, gro...@googlemail.com
<gro...@googlemail.com> wrote:
> In the case of dropping onto a non-ItemsControl then the first 2
> properties obviously cannot apply, so you just get a reference to the
> UIElement, which in your case should be your TextBlock. Am I
> misunderstanding something here?
I think you have understood the question - I am trying to drop onto a
TextBlock element, which does not inherit from ItemsControl, so as you
describe, the VisualTarget property returns a reference to the
TextBlock.
I guess I kind of answered my question by asking it in the first place.
My confusion probably arose from the fact that I was dropping objects
into particular cells within a grouped datagrid. I wanted to narrow
down the target area so that only you can only drop into cells that
make sense to drop things into, as opposed to just dropping the object
anywhere on the grid. Obviously, if I go down this route, I'll have to
introspect the visual targets manually.
Sorry about the confusion and thanks for your help,
Ben