Updated packages. Migrated Avalonia UI to 12.0.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user