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);
}
We provided the solution directly to your team after receiving your code and we already pointed out all the errors in your code and provided the solutions.
Can you please include a compliable test case? Delete the bin and obj folders before posting.
Please login first to submit.
