blob: 32822696c47ddbadb0c4329488955817feee8200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Tango.DragAndDrop
{
/// <summary>
/// Represents the <see cref="DragAndDropService.DropEvent"/> attached event arguments.
/// </summary>
/// <seealso cref="System.Windows.RoutedEventArgs" />
/// <seealso cref="DragAndDropService"/>
/// <seealso cref="DraggingSurface"/>
public class DropEventArgs : RoutedEventArgs
{
/// <summary>
/// Gets or sets the position within the droppable element.
/// </summary>
public Point Position { get; set; }
/// <summary>
/// Gets or sets the draggable element.
/// </summary>
public FrameworkElement Draggable { get; set; }
/// <summary>
/// Gets or sets the droppable element.
/// </summary>
public FrameworkElement Droppable { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="DropEventArgs"/> class.
/// </summary>
/// <param name="routedEvent">The routed event.</param>
/// <param name="draggable">The draggable.</param>
/// <param name="droppable">The droppable.</param>
/// <param name="position">The position.</param>
public DropEventArgs(RoutedEvent routedEvent, FrameworkElement draggable, FrameworkElement droppable, Point position)
{
RoutedEvent = routedEvent;
Draggable = draggable;
Droppable = droppable;
Position = position;
}
}
}
|