DragAndDrop core
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using Lattice.Core.DragDrop.Models;
|
||||
using Lattice.Core.Geometry;
|
||||
|
||||
namespace Lattice.Core.DragDrop.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Аргументы события изменения цели сброса.
|
||||
/// </summary>
|
||||
public class DropTargetChangedEventArgs : EventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Информация о перетаскивании.
|
||||
/// </summary>
|
||||
public DragInfo DragInfo { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Новая цель сброса.
|
||||
/// </summary>
|
||||
public Abstractions.IDropTarget Target { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Границы цели.
|
||||
/// </summary>
|
||||
public Rect TargetBounds { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Инициализирует новый экземпляр класса <see cref="DropTargetChangedEventArgs"/>.
|
||||
/// </summary>
|
||||
public DropTargetChangedEventArgs(DragInfo dragInfo, Abstractions.IDropTarget target, Rect targetBounds)
|
||||
{
|
||||
DragInfo = dragInfo;
|
||||
Target = target;
|
||||
TargetBounds = targetBounds;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user