|
|
@ -4,6 +4,7 @@ using System.Reflection; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Avalonia.Controls; |
|
|
using Avalonia.Controls; |
|
|
using Avalonia.Input; |
|
|
using Avalonia.Input; |
|
|
|
|
|
using Avalonia.Interactivity; |
|
|
using Avalonia.Markup.Xaml; |
|
|
using Avalonia.Markup.Xaml; |
|
|
using Avalonia.Platform.Storage; |
|
|
using Avalonia.Platform.Storage; |
|
|
|
|
|
|
|
|
@ -156,12 +157,17 @@ namespace ControlCatalog.Pages |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
dragMe.PointerPressed += DoDrag; |
|
|
AddHandler(PointerPressedEvent, DoDrag, RoutingStrategies.Tunnel); |
|
|
|
|
|
|
|
|
AddHandler(DragDrop.DropEvent, Drop); |
|
|
AddHandler(DragDrop.DropEvent, Drop); |
|
|
AddHandler(DragDrop.DragOverEvent, DragOver); |
|
|
AddHandler(DragDrop.DragOverEvent, DragOver); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override void OnPointerMoved(PointerEventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
System.Diagnostics.Debug.WriteLine(e.GetCurrentPoint(this).Properties.IsLeftButtonPressed); |
|
|
|
|
|
base.OnPointerMoved(e); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private void InitializeComponent() |
|
|
private void InitializeComponent() |
|
|
{ |
|
|
{ |
|
|
AvaloniaXamlLoader.Load(this); |
|
|
AvaloniaXamlLoader.Load(this); |
|
|
|