public static IScriptCommand DetachDragDropAdorner(string adornerLayerVariable = "{AdornerLayer}", string adornerVariable = "{DragDropAdorner}",
                                                    IScriptCommand nextCommand  = null)
 {
     return(ScriptCommands.IfAssigned(adornerVariable,
                                      AssignAdornerLayer("PART_DragDropAdorner", adornerLayerVariable, false,
                                                         HubScriptCommands.DetachAdorner(adornerLayerVariable, adornerVariable))));
 }
 public static IScriptCommand DetachAdorner(string adornerLayerVariable = "{DragDrop.AdornerLayer}",
                                            string adornerVariable      = "{DragDrop.Adorner}", IScriptCommand nextCommand = null)
 {
     return(HubScriptCommands.DetachAdorner(adornerLayerVariable, adornerVariable,
                                            ScriptCommands.Reset(nextCommand, adornerVariable, adornerLayerVariable)));
 }