| File was renamed from Utils/DdDragHandler.cs |
| | |
| | | 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; |
| | | } |
| | | } |
| | | } |