chenghaoran
2024-03-12 375b488be2666cd56e70728624f4eadaefee0440
WPFProject/Utils/DdDragHandler.cs
File was renamed from Utils/DdDragHandler.cs
@@ -1,20 +1,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;
        }
    }
}
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;
        }
    }
}