Updated packages. Migrated Avalonia UI to 12.0.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
xmlns:vm="clr-namespace:Harmonia.UI.ViewModels"
|
||||
xmlns:converter="clr-namespace:Harmonia.UI.Converters"
|
||||
xmlns:controls="clr-namespace:Harmonia.UI.Controls"
|
||||
xmlns:ia="using:Avalonia.Xaml.Interactions.Animated"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
DataContext="{x:Static vm:ViewModelLocator.PlaylistViewModel}"
|
||||
x:Class="Harmonia.UI.Views.PlaylistView"
|
||||
@@ -155,11 +156,15 @@
|
||||
<!--<ListBox.Styles>
|
||||
<Style Selector="ListBoxItem:nth-child(odd):not(:pointerover):not(:selected)">
|
||||
<Setter Property="Background" Value="#00000000"/>
|
||||
--><!-- Light Gray --><!--
|
||||
-->
|
||||
<!-- Light Gray -->
|
||||
<!--
|
||||
</Style>
|
||||
<Style Selector="ListBoxItem:nth-child(even):not(:pointerover):not(:selected)">
|
||||
<Setter Property="Background" Value="#22AAAAAA"/>
|
||||
--><!-- Slightly Darker Gray --><!--
|
||||
-->
|
||||
<!-- Slightly Darker Gray -->
|
||||
<!--
|
||||
</Style>
|
||||
</ListBox.Styles>-->
|
||||
<ListBox.ItemTemplate>
|
||||
|
||||
@@ -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