Class DragAndDrop

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    DragAndDrop controls the drag object and data.

    public class DragAndDrop : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    DragAndDrop
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Properties

    View Source

    Instance

    Gets the singleton instance of DragAndDrop.

    Declaration
    public static DragAndDrop Instance { get; }
    Property Value
    Type Description
    DragAndDrop

    Methods

    View Source

    AddListener(View, string, DragAndDropEventHandler)

    Adds listener for drop targets

    Declaration
    public void AddListener(View targetView, string mimeType, DragAndDrop.DragAndDropEventHandler callback)
    Parameters
    Type Name Description
    View targetView

    The target view

    string mimeType

    The mime type for 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

    View Source

    AddListener(View, DragAndDropEventHandler)

    Adds listener for drop targets

    Declaration
    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

    View Source

    AddListener(Window, string, DragAndDropWindowEventHandler)

    Adds listener for drop targets

    Declaration
    public void AddListener(Window targetWindow, string mimeType, DragAndDrop.DragAndDropWindowEventHandler callback)
    Parameters
    Type Name Description
    Window targetWindow

    The target Window

    string mimeType

    The mime type for target view

    DragAndDrop.DragAndDropWindowEventHandler callback

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

    View Source

    AddListener(Window, DragAndDropWindowEventHandler)

    Adds listener for drop targets

    Declaration
    public void AddListener(Window targetWindow, DragAndDrop.DragAndDropWindowEventHandler callback)
    Parameters
    Type Name Description
    Window targetWindow

    The target Window

    DragAndDrop.DragAndDropWindowEventHandler callback

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

    View Source

    RemoveListener(View, DragAndDropEventHandler)

    Removes listener for drop targets

    Declaration
    public void RemoveListener(View targetView, DragAndDrop.DragAndDropEventHandler _)
    Parameters
    Type Name Description
    View targetView

    The target view

    DragAndDrop.DragAndDropEventHandler _

    The callback function to remove(Not used)

    View Source

    RemoveListener(Window, DragAndDropWindowEventHandler)

    Removes listener for drop targets

    Declaration
    public void RemoveListener(Window targetWindow, DragAndDrop.DragAndDropWindowEventHandler _)
    Parameters
    Type Name Description
    Window targetWindow

    The target window

    DragAndDrop.DragAndDropWindowEventHandler _

    The callback function to remove(Not used)

    View Source

    SetDragWindowOffset(int, int)

    Sets drag window offset

    Declaration
    public void SetDragWindowOffset(int x, int y)
    Parameters
    Type Name Description
    int x

    The x direction offset

    int y

    The y direction offset

    View Source

    StartDragAndDrop(View, View, DragData, SourceEventHandler)

    Starts drag and drop.

    Declaration
    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

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX