/// <summary>
        /// Gets or creates a DragDropper instance.
        /// </summary>
        /// <param name="name">The unique name of the DragDropper.</param>
        /// <returns>A <see cref="DragDropper" /> instance.</returns>
        public DragDropper this[string name]
        {
            get
            {
                var existing = dragDroppers.Where(d => d.Name == name).FirstOrDefault();
                if (existing != null)
                {
                    return existing;
                }

                var dd = new DragDropper(name);
                dragDroppers.Add(dd);
                return dd;
            }
        }
예제 #2
0
        /// <summary>
        /// Gets or creates a DragDropper instance.
        /// </summary>
        /// <param name="name">The unique name of the DragDropper.</param>
        /// <returns>A <see cref="DragDropper" /> instance.</returns>
        public DragDropper this[string name]
        {
            get
            {
                var existing = dragDroppers.Where(d => d.Name == name).FirstOrDefault();
                if (existing != null)
                {
                    return(existing);
                }

                var dd = new DragDropper(name);
                dragDroppers.Add(dd);
                return(dd);
            }
        }