How do I change the appearance of the XAML element that is displayed while being dragged during a drag & drop operation in .Net MAUI?
Maybe I should ask to what extent the appearance of the dragged visual can be changed?
Currently the dragged visual is basically a slightly transparent copy of the XAML element on which the DragGestureRecognizer is implemented. I'd like to replace that visual completely, or at least resize it.
I've adapted this example for an MVVM implementation, but I can't seem to find a way to change the appearance of the dragged visual.
Thx
I tried the
DragStartingCommandwhich is executed when a drag gesture is first recognized.Here is the code in .xmal file. I create a rectangle.
Here is the code behind. I drag the element then it will set the height to 12.
More commands you can use by refering to Add drag and drop gesture recognizers