|
|
|
@ -9,21 +9,21 @@ namespace Avalonia.Input |
|
|
|
/// <summary>
|
|
|
|
/// Event which is raised, when a drag-and-drop operation enters the element.
|
|
|
|
/// </summary>
|
|
|
|
public static RoutedEvent<DragEventArgs> DragEnterEvent = RoutedEvent.Register<DragEventArgs>("DragEnter", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
public static readonly RoutedEvent<DragEventArgs> DragEnterEvent = RoutedEvent.Register<DragEventArgs>("DragEnter", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
/// <summary>
|
|
|
|
/// Event which is raised, when a drag-and-drop operation leaves the element.
|
|
|
|
/// </summary>
|
|
|
|
public static RoutedEvent<RoutedEventArgs> DragLeaveEvent = RoutedEvent.Register<RoutedEventArgs>("DragLeave", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
public static readonly RoutedEvent<RoutedEventArgs> DragLeaveEvent = RoutedEvent.Register<RoutedEventArgs>("DragLeave", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
/// <summary>
|
|
|
|
/// Event which is raised, when a drag-and-drop operation is updated while over the element.
|
|
|
|
/// </summary>
|
|
|
|
public static RoutedEvent<DragEventArgs> DragOverEvent = RoutedEvent.Register<DragEventArgs>("DragOver", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
public static readonly RoutedEvent<DragEventArgs> DragOverEvent = RoutedEvent.Register<DragEventArgs>("DragOver", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
/// <summary>
|
|
|
|
/// Event which is raised, when a drag-and-drop operation should complete over the element.
|
|
|
|
/// </summary>
|
|
|
|
public static RoutedEvent<DragEventArgs> DropEvent = RoutedEvent.Register<DragEventArgs>("Drop", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
public static readonly RoutedEvent<DragEventArgs> DropEvent = RoutedEvent.Register<DragEventArgs>("Drop", RoutingStrategies.Bubble, typeof(DragDrop)); |
|
|
|
|
|
|
|
public static AvaloniaProperty<bool> AllowDropProperty = AvaloniaProperty.RegisterAttached<Interactive, bool>("AllowDrop", typeof(DragDrop), inherits: true); |
|
|
|
public static readonly AvaloniaProperty<bool> AllowDropProperty = AvaloniaProperty.RegisterAttached<Interactive, bool>("AllowDrop", typeof(DragDrop), inherits: true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets a value indicating whether the given element can be used as the target of a drag-and-drop operation.
|
|
|
|
|