public DataObject GetDataObject(UIElement draggedElement, Point location) { DataObject data = new DataObject(); ToolboxItem item = GetToolboxItem(draggedElement); if (item != null) { item.IsBeingDragged = true; data.SetData("Helios.Visual", item.CreateControl()); } return(data); }