When dragging a file or files if the location is valid example folder the cursor should be changed to move and if not it should show block cursor. This is my code in DragOver event but the cursor is not taking effect.
if (IsValidDropTarget(targetItem))
{
e.Effect = DragDropEffects.Move;
this.Cursor = Cursors.Arrow;
string folderName = GetCleanFolderName(targetItem[“CloudFileName”]?.ToString());
DragVisualHelper.UpdateFloatingLabelWithColor($”Drop into {folderName}”, Color.Brown);
}
else
{
DragVisualHelper.UpdateFloatingLabelWithColor(dragText, Color.AliceBlue);
}