Xamarin Drag and Drop Notification icon ant text

Dwain Snickles 116 Reputation points

In the Image shown below when i get the ok to drop it has a copy icon and text saying Copy I'm would like to know how to change the icon and text displayed or to turn it off if I cant. The link I used was on github download
I tried the code below but it only changes the drop location.

private void OnCorrectDragOver(object sender, DragEventArgs e)  
        e.Data.Text = "My text data goes here";  
        e.Data.Image = "plusicon.png";  

I inserted a gif showing the issue I am trying to resolve. 199844-draggif.gif

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,206 Reputation points Microsoft Vendor


    There is no this icon on Android and iOS, I notice that you test on the UWP platform. Xamarin has not implemented such feature for customizing drag UI like UWP platform. For UWP native, it has DragUI property that could use to custom drag UI. Please refer to UWP drag and drop official code sample for more info. However, Xamarin AcceptedOperation only contain None and Copy and the copy drag-UI was build internal, it has no API for customizing drag-ui. If you do want such feature, please feel free to report your feature request in Xamarin GitHub: https://github.com/xamarin/Xamarin.Forms

    Best Regards,
    Wenyan Zhang

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful