コード例 #1
0
        /// <summary>
        /// 清除当前所有选择的
        /// </summary>
        public void RemoveAllSelected()
        {
            foreach (DragThumb thumb in SelectDragThumbs)
            {
                this.Children.Remove(thumb);
                DragThumbs.Remove(thumb);
            }

            bSaved = false;
            _CurSelectedDragThumb = null;
            SelectDragThumbs.Clear();
            ReOrderAllDragImage();  //重新排序
        }
コード例 #2
0
        /// <summary>
        /// 移除控件
        /// </summary>
        /// <param name="dragThumb"></param>
        public void RemoveDragThumb(DragThumb dragThumb)
        {
            if (dragThumb == null)
            {
                return;
            }
            this.Children.Remove(dragThumb);

            bSaved = false;
            SelectDragThumbs.Remove(dragThumb);
            DragThumbs.Remove(dragThumb);
            ReOrderAllDragImage();  //重新排序
        }