From c1ef7c141fa7caaac04f3faedfc86eeb5e949aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89=E9=B8=AD=E8=9B=8B?= Date: Sun, 3 Nov 2024 00:04:54 +0800 Subject: [PATCH] + drag drop --- .../BetterGenshinImpact.csproj | 2 +- .../View/Pages/OneDragonFlowPage.xaml | 4 +++- .../View/Pages/ScriptControlPage.xaml | 2 ++ .../View/Pages/View/PathingConfigView.xaml | 19 +++++++++++++++++-- 4 files changed, 23 insertions(+), 4 deletions(-) diff --git a/BetterGenshinImpact/BetterGenshinImpact.csproj b/BetterGenshinImpact/BetterGenshinImpact.csproj index 85df14b3..7ef50887 100644 --- a/BetterGenshinImpact/BetterGenshinImpact.csproj +++ b/BetterGenshinImpact/BetterGenshinImpact.csproj @@ -10,7 +10,7 @@ true Assets\Images\logo.ico BetterGI - 0.35.4 + 0.35.5 x64 embedded diff --git a/BetterGenshinImpact/View/Pages/OneDragonFlowPage.xaml b/BetterGenshinImpact/View/Pages/OneDragonFlowPage.xaml index 2ba996d6..3faca674 100644 --- a/BetterGenshinImpact/View/Pages/OneDragonFlowPage.xaml +++ b/BetterGenshinImpact/View/Pages/OneDragonFlowPage.xaml @@ -57,9 +57,11 @@ Width="10" Height="10" Margin="10,0,10,0" - Fill="{Binding StatusColor}" /> + Fill="{Binding StatusColor}" + IsHitTestVisible="False" /> diff --git a/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml b/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml index 89a66335..0bdae214 100644 --- a/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml +++ b/BetterGenshinImpact/View/Pages/ScriptControlPage.xaml @@ -49,6 +49,7 @@ @@ -215,6 +216,7 @@ VerticalAlignment="Stretch" dd:DragDrop.IsDragSource="True" dd:DragDrop.IsDropTarget="True" + dd:DragDrop.UseDefaultDragAdorner="True" ItemsSource="{Binding SelectedScriptGroup.Projects, Mode=TwoWay}" SelectionMode="Single"> diff --git a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml index 4df0087e..2d2de633 100644 --- a/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml +++ b/BetterGenshinImpact/View/Pages/View/PathingConfigView.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:dd="urn:gong-wpf-dragdrop" xmlns:local="clr-namespace:BetterGenshinImpact.Model" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:sdl="http://schemas.sdl.com/xaml" @@ -44,10 +45,17 @@ FontTypography="BodyStrong" Text="队伍切换设置" /> - + + - + +