c# - Setup ListView as a drop target for files on Windows 10 Universal Apps -


i have declared in xaml following element:

<listview name='mplaylist' allowdrop='true' dragenter='handleplaylist_dragenter' drop='handleplaylist_drop' /> 

when drag file windows explorer or desktop onto listview using mouse, dragenter handler executed , can set acceptedoperation member of drageventargs link (and handled true). far, good.

when release left click, drop event handler never fired. can't figure out why not.

when drag file on listview, cursor changes stop/invalid cursor, , file thumbnail overlaid red cross (despite setting acceptedoperation match 1 of requestedoperations - link).

although unrelated, thumbnail jumps , left, fair distance cursor. moving cursor on listview , thumbnail not maintain constant distance cursor - haven't been able figure out either.

i'm working on pc, , using version 10.0.10069.0 of universal app platform in vs2015 rc.

any ideas on can cause drop event fire on listview (and perhaps fix visual glitch of thumbnail 'separating' cursor when on listview) appreciated.

solution use dragover event set acceptedoperation member of drageventargs, rather dragenter.

thanks igor ralic posting solution on blog.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -