Updated packages. Migrated Avalonia UI to 12.0.

This commit is contained in:
2026-04-15 09:52:25 -04:00
parent c747635703
commit 5f7b716d25
11 changed files with 32 additions and 21 deletions

View File

@@ -243,7 +243,7 @@ public partial class PlaylistView : UserControl
// AddHandler(DragDrop.DragLeaveEvent, DragLeave);
//}
private async void StartDrag(object? sender, Action<DataObject> factory, PointerPressedEventArgs e, DragDropEffects effects)
private async void StartDrag(object? sender, Action<DataTransfer> factory, PointerPressedEventArgs e, DragDropEffects effects)
{
if (e.GetCurrentPoint((Visual)sender!).Properties.IsLeftButtonPressed == false)
{
@@ -253,10 +253,10 @@ public partial class PlaylistView : UserControl
return;
}
var dragData = new DataObject();
var dragData = new DataTransfer();
factory(dragData);
var result = await DragDrop.DoDragDrop(e, dragData, effects);
var result = await DragDrop.DoDragDropAsync(e, dragData, effects);
}
private void DragOver(object? sender, DragEventArgs e)