From f57a6498066a8521b6232376c4012cd575fb01f9 Mon Sep 17 00:00:00 2001
From: Yair <39923744+yaira2@users.noreply.github.com>
Date: Sun, 5 Jan 2025 21:47:22 -0500
Subject: [PATCH] Added caption when drag & dropping items
---
src/Files.App/Strings/en-US/Resources.resw | 4 ++++
src/Files.App/UserControls/Pane/ShelfPane.xaml.cs | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/Files.App/Strings/en-US/Resources.resw b/src/Files.App/Strings/en-US/Resources.resw
index af73b67e0810..a219e91f76cc 100644
--- a/src/Files.App/Strings/en-US/Resources.resw
+++ b/src/Files.App/Strings/en-US/Resources.resw
@@ -4032,4 +4032,8 @@
Remove from shelf
+
+ Add to Shelf
+ Tooltip that displays when dragging items to the Shelf Pane
+
\ No newline at end of file
diff --git a/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs b/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs
index 8739d8682ef3..baf685530c70 100644
--- a/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs
+++ b/src/Files.App/UserControls/Pane/ShelfPane.xaml.cs
@@ -27,6 +27,7 @@ private void Shelf_DragOver(object sender, DragEventArgs e)
return;
e.Handled = true;
+ e.DragUIOverride.Caption = Strings.AddToShelf.GetLocalizedResource();
e.AcceptedOperation = DataPackageOperation.Link;
}