Class DragAndDrop

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll
API Level:
10

DragAndDrop controls the drag object and data.

C#
Copy
public class DragAndDrop : BaseHandle, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable
Inheritance
System.Object
Tizen.NUI.Binding.Element
DragAndDrop
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Properties

View Source

Instance

Gets the singleton instance of DragAndDrop.

Declaration
C#
Copy
public static DragAndDrop Instance { get; }
Property Value
Type Description
DragAndDrop
API Level: 10

Methods

View Source

AddListener(View, DragAndDrop.DragAndDropEventHandler)

Adds listener for drop targets

Declaration
C#
Copy
public void AddListener(View targetView, DragAndDrop.DragAndDropEventHandler callback)
Parameters
Type Name Description
View targetView

The target view

DragAndDrop.DragAndDropEventHandler callback

The callback function to get drag event when the drag source enters, moves, leaves and drops on the drop target

API Level: 10
View Source

RemoveListener(View, DragAndDrop.DragAndDropEventHandler)

Removes listener for drop targets

Declaration
C#
Copy
public void RemoveListener(View targetView, DragAndDrop.DragAndDropEventHandler callback)
Parameters
Type Name Description
View targetView

The target view

DragAndDrop.DragAndDropEventHandler callback

The callback function to remove

API Level: 10
View Source

StartDragAndDrop(View, View, DragData, DragAndDrop.SourceEventHandler)

Starts drag and drop.

Declaration
C#
Copy
public void StartDragAndDrop(View sourceView, View shadowView, DragData dragData, DragAndDrop.SourceEventHandler callback)
Parameters
Type Name Description
View sourceView

The soruce view

View shadowView

The shadow view for drag object

DragData dragData

The data to send

DragAndDrop.SourceEventHandler callback

The source event callback

API Level: 10

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable