'Windows shell drag-and-drop not working only for Chrome

I need to implement shell style drag-and-drop action in my C# WPF app. I am following this MSDN article, using imported COM functions.

Currently, my app could drag combined file/custom data to most programs (File explorer, Firefox, Edge, MS Word, Notepad++ ...), using following code:

BitmapSource myThumbnail = ...
string[] files = ...
DragSourceHelper.DoDragDrop(window, myThumbnail, new Point(0,0), DragDropEffects.Copy, 
    new KeyValuePair<string, object>(DataFormats.FileDrop, files),
    new KeyValuePair<string, object>("MyCustomFormat", "My Custom Format String!"));

But if my cursor drags enter Google Chrome, the dragging effect just stopped.

Question: How could I know it is either a Chrome issue, or is a bug inside MSDN sample?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source