alielie
2025-03-13 a3ba25607612818c28d421bfa8eb2f92339d71ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using GongSolutions.Wpf.DragDrop;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using WPFProject.Models;
 
namespace WPFProject.Utils
{
    public class DdDragHandler : DefaultDragHandler
    {
        public override bool CanStartDrag(IDragInfo dragInfo)
        {
            FuncModel model = dragInfo.SourceItem as FuncModel;
            return model.Children ==null || model.Children.Count == 0;
        }
    }
}