alielie
2025-05-12 7bf89fd93bc487e8445d6d85bb527251b7371a04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using GongSolutions.Wpf.DragDrop;
using Plugin.TestBuilder.Model;
 
namespace Plugin.TestBuilder.UI
{
    public class DdDragHandler : DefaultDragHandler
    {
        public override bool CanStartDrag(IDragInfo dragInfo)
        {
            FuncModel model = dragInfo.SourceItem as FuncModel;
            return model.Children ==null || model.Children.Count == 0;
        }
    }
}