@@ -1243,18 +1243,20 @@ private async Task HandleTagItemDragOverAsync(FileTagItem tagItem, ItemDragOverE
1243
1243
1244
1244
args . RawEvent . Handled = true ;
1245
1245
1246
- var storageItems = await Utils . Storage . FilesystemHelpers . GetDraggedStorageItems ( args . DroppedItem ) ;
1247
-
1248
- if ( ! storageItems . Any ( ) )
1249
- {
1250
- args . RawEvent . AcceptedOperation = DataPackageOperation . None ;
1251
- }
1252
- else
1253
- {
1254
- args . RawEvent . DragUIOverride . IsCaptionVisible = true ;
1255
- args . RawEvent . DragUIOverride . Caption = string . Format ( "LinkToFolderCaptionText" . GetLocalizedResource ( ) , tagItem . Text ) ;
1256
- args . RawEvent . AcceptedOperation = DataPackageOperation . Link ;
1257
- }
1246
+ // Comment out the code for dropping to Tags section as it is currently not supported.
1247
+
1248
+ //var storageItems = await Utils.Storage.FilesystemHelpers.GetDraggedStorageItems(args.DroppedItem);
1249
+
1250
+ //if (!storageItems.Any())
1251
+ //{
1252
+ args . RawEvent . AcceptedOperation = DataPackageOperation . None ;
1253
+ //}
1254
+ //else
1255
+ //{
1256
+ // args.RawEvent.DragUIOverride.IsCaptionVisible = true;
1257
+ // args.RawEvent.DragUIOverride.Caption = string.Format("LinkToFolderCaptionText".GetLocalizedResource(), tagItem.Text);
1258
+ // args.RawEvent.AcceptedOperation = DataPackageOperation.Link;
1259
+ //}
1258
1260
}
1259
1261
1260
1262
@@ -1264,8 +1266,11 @@ public async Task HandleItemDroppedAsync(ItemDroppedEventArgs args)
1264
1266
await HandleLocationItemDroppedAsync ( locationItem , args ) ;
1265
1267
else if ( args . DropTarget is DriveItem driveItem )
1266
1268
await HandleDriveItemDroppedAsync ( driveItem , args ) ;
1267
- else if ( args . DropTarget is FileTagItem fileTagItem )
1268
- await HandleTagItemDroppedAsync ( fileTagItem , args ) ;
1269
+
1270
+ // Comment out the code for dropping to Tags section as it is currently not supported.
1271
+
1272
+ //else if (args.DropTarget is FileTagItem fileTagItem)
1273
+ // await HandleTagItemDroppedAsync(fileTagItem, args);
1269
1274
}
1270
1275
1271
1276
private async Task HandleLocationItemDroppedAsync ( LocationItem locationItem , ItemDroppedEventArgs args )
@@ -1293,6 +1298,7 @@ private Task<ReturnResult> HandleDriveItemDroppedAsync(DriveItem driveItem, Item
1293
1298
return FilesystemHelpers . PerformOperationTypeAsync ( args . RawEvent . AcceptedOperation , args . RawEvent . DataView , driveItem . Path , false , true ) ;
1294
1299
}
1295
1300
1301
+ // TODO: This method effectively does nothing. We need to implement the functionality for dropping to Tags section.
1296
1302
private async Task HandleTagItemDroppedAsync ( FileTagItem fileTagItem , ItemDroppedEventArgs args )
1297
1303
{
1298
1304
var storageItems = await Utils . Storage . FilesystemHelpers . GetDraggedStorageItems ( args . DroppedItem ) ;
0 commit comments