mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-27 11:43:24 +08:00
添加项目文件。
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using GongSolutions.Wpf.DragDrop;
|
||||
|
||||
namespace Showcase.WPF.DragDrop.Models
|
||||
{
|
||||
public class ListBoxCustomDropHandler : DefaultDropHandler
|
||||
{
|
||||
public override void DragOver(IDropInfo dropInfo)
|
||||
{
|
||||
if (dropInfo.VisualTarget == dropInfo.DragInfo.VisualSource)
|
||||
{
|
||||
dropInfo.NotHandled = dropInfo.VisualTarget == dropInfo.DragInfo.VisualSource;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.DragOver(dropInfo);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Drop(IDropInfo dropInfo)
|
||||
{
|
||||
if (dropInfo.VisualTarget == dropInfo.DragInfo.VisualSource)
|
||||
{
|
||||
dropInfo.NotHandled = dropInfo.VisualTarget == dropInfo.DragInfo.VisualSource;
|
||||
}
|
||||
else
|
||||
{
|
||||
base.Drop(dropInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user