From b722243703fc857e66895fbcdd5607974b979ace Mon Sep 17 00:00:00 2001 From: UniqProject <3046095+UniqProject@users.noreply.github.com> Date: Wed, 1 Mar 2023 00:17:47 +0100 Subject: [PATCH] Add Drag&Drop handler for dropping Folders/ISO-Files onto the main window --- BDInfoAV/Views/MainWindow.axaml | 3 ++- BDInfoAV/Views/MainWindow.axaml.cs | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/BDInfoAV/Views/MainWindow.axaml b/BDInfoAV/Views/MainWindow.axaml index 20d16df1d..c5245e7ee 100644 --- a/BDInfoAV/Views/MainWindow.axaml +++ b/BDInfoAV/Views/MainWindow.axaml @@ -17,7 +17,8 @@ SizeChanged="OnSizeChanged" Background="{DynamicResource SystemControlBackgroundAltHighBrush}" UseLayoutRounding="True" - ExtendClientAreaChromeHints="PreferSystemChrome"> + ExtendClientAreaChromeHints="PreferSystemChrome" + DragDrop.AllowDrop="True">