mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-15 22:16:37 +08:00
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using System;
|
|
using System.Windows;
|
|
using System.Windows.Controls.Primitives;
|
|
|
|
namespace Dragablz
|
|
{
|
|
public delegate void DragablzDragDeltaEventHandler(object sender, DragablzDragDeltaEventArgs e);
|
|
|
|
public class DragablzDragDeltaEventArgs : DragablzItemEventArgs
|
|
{
|
|
private readonly DragDeltaEventArgs _dragDeltaEventArgs;
|
|
|
|
public DragablzDragDeltaEventArgs(DragablzItem dragablzItem, DragDeltaEventArgs dragDeltaEventArgs)
|
|
: base(dragablzItem)
|
|
{
|
|
if (dragDeltaEventArgs == null) throw new ArgumentNullException("dragDeltaEventArgs");
|
|
|
|
_dragDeltaEventArgs = dragDeltaEventArgs;
|
|
}
|
|
|
|
public DragablzDragDeltaEventArgs(RoutedEvent routedEvent, DragablzItem dragablzItem, DragDeltaEventArgs dragDeltaEventArgs)
|
|
: base(routedEvent, dragablzItem)
|
|
{
|
|
if (dragDeltaEventArgs == null) throw new ArgumentNullException("dragDeltaEventArgs");
|
|
|
|
_dragDeltaEventArgs = dragDeltaEventArgs;
|
|
}
|
|
|
|
public DragablzDragDeltaEventArgs(RoutedEvent routedEvent, object source, DragablzItem dragablzItem, DragDeltaEventArgs dragDeltaEventArgs)
|
|
: base(routedEvent, source, dragablzItem)
|
|
{
|
|
if (dragDeltaEventArgs == null) throw new ArgumentNullException("dragDeltaEventArgs");
|
|
|
|
_dragDeltaEventArgs = dragDeltaEventArgs;
|
|
}
|
|
|
|
public DragDeltaEventArgs DragDeltaEventArgs
|
|
{
|
|
get { return _dragDeltaEventArgs; }
|
|
}
|
|
|
|
public bool Cancel { get; set; }
|
|
}
|
|
} |