Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

(MacOS) Issue when DragEnter from Finder #160

@Tenjim

Description

@Tenjim

Hi,

I have an issue when I begin an DragEnter event to init the drag and drop from behavior.
It's seems to came only when we drag a file from Finder. it's occur when we are getting custom data object type from clipboard. But it can't be replicated with vanilla Drag and drop from Avalonia. (ref : see ControlCatalog samples from Avalonia) because they are using DataFormat.File.
fyi : it's only on macOS not on windows.

I'm using 11.0.10 (I had already try on 11.0.10.9) version of Avalonia Behavior
And I'm on 11.0.10 Avalonia

This is the call stack about this issue :

System.Runtime.InteropServices.COMException (0x80004005): GetBytes failed
at Avalonia.Native.Interop.Impl.__MicroComIAvnClipboardProxy.GetBytes(String type)
at Avalonia.Native.ClipboardImpl.GetDataAsync(String format)
at Avalonia.Native.ClipboardDataObject.Get(String dataFormat)
at Avalonia.Xaml.Interactions.DragAndDrop.ContextDropBehavior.DragEnter(Object sender, DragEventArgs e)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions