Skip to content

Drag and Drop support #1480

Open
3 of 8 issues completed
Open

Description

@dr1rrb

Epic for

Drag and drop functionality

What would you like to be added:

UIElement.< DragEnter | DragLeave | DragOver | DragStarting | Drop | DropCompleted > events, and the matching overridable methods Control.< OnDragEnter(DragEventArgs) | OnDragLeave(DragEventArgs) | OnDragOver(DragEventArgs) | OnDrop(DragEventArgs) >

Why is this needed:

Cause I like to drag and drop stuff ... and it matches the UWP API.

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • Windows

Sub-issues

Sub-issues

3 of 8 Issues completed
Loading 8 sub-issues

Activity

  1. added
    kind/enhancement
    platform/wasm 🌐
    platform/android 🤖
    platform/ios 🍎
    triage/untriaged
    on Sep 4, 2019
  2. removed
    triage/untriaged
    on Sep 5, 2019
  3. abrull commented on Jun 2, 2020

    @abrull

    Are there any updates on this?

  4. robloo commented on Jun 2, 2020

    @robloo
    Contributor

    Funny, I just thought of checking up on this myself. It's a pretty major deficiency still in the platform.

  5. jeromelaban commented on Jun 2, 2020

    @jeromelaban
    Member

    We've been making progress on the support for pointers events, pointer capture and other related features, making the implementation of this feature closer.

    Make sure to upvote this issue to make it visible!

  6. robloo commented on Aug 14, 2020

    @robloo
    Contributor

    This seems more important now with the Skia backends for Linux/Win7. It seems it wouldn't be possible to use native drag-and-drop like Android/iOS in this case as Uno is rendering everything and managing the controls themselves.

  7. added this to the 3.1 milestone on Aug 31, 2020
  8. robloo commented on Sep 15, 2020

    @robloo
    Contributor

    I need this for a macOS port as its critical to the user-experience in a desktop environment. It makes more sense at this point to just implement WinUI-style drag-and-drop rather than making platform-specific code for my use case.

    I'm happy to make myself available as a resource on this. If someone from nventive that has more experience cross-platform led the development it probably makes more sense than if I tackle it only for macOS right now. But I would be happy to help adding all classes, enums, etc. where they are needed. Please just let me know how I can help!

  9. francoistanguay commented on Sep 15, 2020

    @francoistanguay
    Contributor

    If all goes well, @dr1rrb is starting on it this week. Talk about timing!

  10. robloo commented on Sep 16, 2020

    @robloo
    Contributor

    @dr1rrb I quickly outlined the events/classes used in drag/drop.

    UIElement Events

    • public event DragEventHandler DragEnter;
    • public event DragEventHandler DragLeave;
    • public event DragEventHandler DragOver;
    • public event TypedEventHandler<UIElement,DragStartingEventArgs> DragStarting;
    • public event DragEventHandler Drop;
    • public event TypedEventHandler<UIElement,DropCompletedEventArgs> DropCompleted;

    Classes

    • public delegate void DragEventHandler(object sender, DragEventArgs e);
    • public sealed class DragStartingEventArgs : RoutedEventArgs
    • public sealed class DropCompletedEventArgs : RoutedEventArgs
      |
    • public sealed class DragOperationDeferral
    • public sealed class DragUI
    • public sealed class DragUIOverride
      |
    • public sealed class DataPackage
    • public sealed class DataPackageView
    • public sealed class DataPackagePropertySet : IDictionary<string,object>, IEnumerable<KeyValuePair<string,object>>
    • public sealed class DataPackagePropertySetView : IEnumerable<KeyValuePair<string,object>>, IReadOnlyDictionary<string,object>
      |
    • public enum DataPackageOperation

    I know it can be tricky working with someone on features like this -- especially remotely. However, since the API and functionality are already defined it simplifies dividing up tasks. For example, I would be happy to work on DataPackage-related functionality or drag-and-drop events/classes to get the scaffolding in place before you start. Then you can focus more on connecting the pieces together. Again, just let me know if there is something you would like me to do.

  11. 38 remaining items

  12. DevTKSS commented on Jun 26, 2025

    @DevTKSS
    Contributor
  13. added theissue type on Jul 12, 2025
  14. changed the title [-][Epic] Drag and Drop support[/-] [+][EPIC] Drag and Drop support[/+] on Jul 12, 2025
  15. changed the title [-][EPIC] Drag and Drop support[/-] [+]Drag and Drop support[/+] on Jul 25, 2025
  16. removed
    kind/enhancement
    difficulty/challenging 🤯
    on Nov 25, 2025
  17. added a commit that references this issue on Mar 6, 2026
  18. MartinZikmund commented on Apr 7, 2026

    @MartinZikmund
    Member

    Repro generator

    This issue was classified as not reproducible with a code sample or test.

    Reason: Drag and drop appears to have been implemented since this epic was filed — runtime tests covering drag-and-drop events (DragStarting, DragEnter, DropCompleted, etc.) exist in src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_UIElement.cs. If specific drag-and-drop scenarios are still broken, please file a targeted issue with a specific reproduction case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    no-reproplatform/android 🤖platform/ios 🍎platform/wasm 🌐project/pointers 🖱️

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions