chr
2024-03-05 58814389fac0ecf0f12e2509f3bf522082ed9f0f
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;
        }
    }
}