Esempio n. 1
0
        /// <summary>
        /// Creates the desired drag adorner.
        /// </summary>
        protected virtual void CreateDragAdorner()
        {
            if (this.DragSource == null)
            {
                return;
            }
            var template = DragNDrop.GetDragAdornerTemplate(this.DragSource);

            if (template == null)
            {
                return;
            }
            this.DragAdorner = new DataTemplateAdorner(this.DragSource, template, this.DragData);
        }
Esempio n. 2
0
        /// <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);
        }