Using AvalonDock V3.0.
My docking manager has two LayoutAnchorablePaneGroups and one LayoutDocumentPane. I am able to undock either of the two LayoutAnchorablePaneGroups with not problems. When I try to re-dock the LayoutAnchorablePaneGroup I get:
The detail is:
Message=Object reference not set to an instance of an object.
I think I’m not setting or initializing something, but I don’t know what, and I haven’t figured out what events are being fired.
I cannot reproduce this in v3.0 and up.
Can you send me a sample project which reproduces the issue? Or modify the sample, in the below link, to reproduce the issue? Or explain in details the steps you are doing to reproduce this ?
To run the attached sample, you will need to add the Xceed.Wpf.AvalonDock.dll reference.
Ok, I looked at your code, it is very basic, but to the point. It works. I’m guessing that the exception is caused by my view or viewmodel during when responding to the AvalonDock.DropTarget. I’ll look at the load events for my views. Thanks. Will report back with I figure out what I missed.