When a DragGestureRecognizer object detects a drag gesture, it executes the DragStartingCommand and invokes the DragStarting event. The DragGestureRecognizer class also defines DragStarting and DropCompleted events that fire provided that the CanDrag property is true. These properties are backed by BindableProperty objects, which means that they can be targets of data bindings, and styled. DropCompletedCommandParameter, of type object, which is the parameter that's passed to the DropCompletedCommand.DropCompletedCommand, of type ICommand, which is executed when the drag source is dropped.DragStartingCommandParameter, of type object, which is the parameter that's passed to the DragStartingCommand.DragStartingCommand, of type ICommand, which is executed when a drag gesture is first recognized.The default value of this property is true. CanDrag, of type bool, which indicates whether the element the gesture recognizer is attached to can be a drag source.This class defines the following properties: NET MAUI, drag gesture recognition is provided by the DragGestureRecognizer class. For more information, see Process the data package.
![drag and drop flinto drag and drop flinto](https://fthmb.tqn.com/NlXW0PbDyIg0W_rtP0eQojzfNRQ=/1800x1352/filters:fill(auto,1)/drag-and-drop-59403fca5f9b58d58a4a89ca.png)
Process the data package to receive the dropped content.NET MAUI will automatically retrieve image and text data from the data package, but for other content you'll need to process the data package.For more information, see Handle the DragOver event. Handle the DropGestureRecognizer.DragOver event to indicate the type of operation allowed by the drop target.Enable drop on an element by adding a DropGestureRecognizer object its GestureRecognizers collection.For more information, see Build a data package. Build a data package.NET MAUI automatically populates the data package for image and text controls, but for other content you'll need to construct your own data package.Enable drag on an element by adding a DragGestureRecognizer object to its GestureRecognizers collection.The process for enabling drag and drop in an app is as follows: On iOS a minimum platform of iOS 11 is required.