I spent the whole day trying to figure out what went wrong, but still no luck.
When I use the DragDrop function in the GroupBar control, I can easily move an item from one GroupBarItem to another without any issue. However, if I try to move it back, it produces a System.ArgumentNullException error. More specifically, "
throw new ArgumentNullException("adornedElement");
"triggered.
protected Adorner(UIElement adornedElement)
{
if (adornedElement == null)
{
throw new ArgumentNullException("adornedElement");
}
_adornedElement = adornedElement;
_isClipEnabled = false;
Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Normal,
new DispatcherOperationCallback(CreateFlowDirectionBinding), this);
}
I basically copy and past the same xaml code from the example provided as part of the SDK, and it didn't work. Magically, it works in the original example. I have no idea what's going on here. Please help!