/// <summary> /// Removes the drag adorner. /// </summary> public virtual void RemoveAdorner() { if (this.DropAdorner != null) { this.DropAdorner.Detach(); this.DropAdorner = null; } }
/// <summary> /// Creates the drop adorner. /// </summary> protected virtual void CreateAdorner() { if (this.DropTarget == null) { return; } var template = DragNDrop.GetDropAdornerTemplate(this.DropTarget); if (template == null) { return; } this.DropAdorner = new DataTemplateAdorner(this.DropTarget, template, this.DragController.DragData); }