开发者

Drag and Drop image from a list box to a Content Control item

开发者 https://www.devze.com 2023-01-26 15:05 出处:网络
I have a list box of images and I want to be able to click and drag an image to a content control item and have it display the file path of the image for now.Does anyone know how I could implement t开

I have a list box of images and I want to be able to click and drag an image to a content control item and have it display the file path of the image for now. Does anyone know how I could implement t开发者_如何转开发his? I'm very new to WPF. Links to references would also be ok.


Unfortunately drag and drop in WPF is harder work than you'd like. I personally use the open source library http://code.google.com/p/gong-wpf-dragdrop/.

Or if you want to do more of the work yourself this article is a good place to start.

0

精彩评论

暂无评论...
验证码 换一张
取 消