mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-27 03:33:25 +08:00
34 lines
1020 B
C#
34 lines
1020 B
C#
using System.Windows;
|
|
|
|
namespace GongSolutions.Wpf.DragDrop
|
|
{
|
|
/// <summary>
|
|
/// Interface implemented by Drop Handlers.
|
|
/// </summary>
|
|
public interface IDropTarget
|
|
{
|
|
/// <summary>
|
|
/// Updates the current drag state.
|
|
/// </summary>
|
|
///
|
|
/// <param name="dropInfo">
|
|
/// Information about the drag.
|
|
/// </param>
|
|
///
|
|
/// <remarks>
|
|
/// To allow a drop at the current drag position, the <see cref="DropInfo.Effects"/> property on
|
|
/// <paramref name="dropInfo"/> should be set to a value other than <see cref="DragDropEffects.None"/>
|
|
/// and <see cref="DropInfo.Data"/> should be set to a non-null value.
|
|
/// </remarks>
|
|
void DragOver(IDropInfo dropInfo);
|
|
|
|
/// <summary>
|
|
/// Performs a drop.
|
|
/// </summary>
|
|
///
|
|
/// <param name="dropInfo">
|
|
/// Information about the drop.
|
|
/// </param>
|
|
void Drop(IDropInfo dropInfo);
|
|
}
|
|
} |