问题描述
亲爱的,
我正在使用包含图片集合的LibraryStack控件。在应用程序中,每个LibraryStack都包含来自其自己文件夹的图片。到目前为止一直很好。
我的情况如下:
我有5个不同的LibraryStack来自哪里我可以拖放图片了。但我想避免将属于FolderA的图片拖回错误的LibraryStack中。默认情况下它是允许的,因为对象都是相同的类型。
我尝试在LibraryStack上捕获不同的事件,以便在项目被删除并添加到事件之前捕获事件该集合然后进行测试,如果源目录相同但无法获得正确的事件来跟踪。
感谢您的帮助
serge
您的知识会被其他人的知识所提升。
Dear all,
I am using the LibraryStack control which contains a collection of Pictures. In the application each LibraryStack contains pictures from its own folder. So far so good.
The scenario I have is the following :
I have 5 different LibraryStack from wich I can drag and drop pictures out. But I would like to avoid that a Picture belonging to FolderA gets dragged back in the wrong LibraryStack. By default it is allowed because objects are all same type.
I try to catch different event on LibraryStack in order to catch an event before the item gets drop and added to the collection and then make a test if the source directory is the same but could not get the proper event to track.
Thanks for help
serge
Your knowledge is enhanced by that of others.
这篇关于关于LibraryStack控件的简单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!