Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Mar 17, 2007 5:08 am Post subject: HOWTO : Support dragdrop within your namespace extension |
|
|
To support dragdrop in cases where both the source and target of the dragdrop operation is an item in your namespace extension, you must store data about the source item in the dataobject. This should be done in the NSEFolder.GetDataObject method. The data can be stored in any format you wish. This dataformat can later be retrieved by your code in the NSEItem.DragDrop method.
For an example of this technique, see the RegistryBrowser sample that comes with EZNamespaceExtensions.Net. This sample stores data about the source items of the dragdrop operation (registry keys/values) in the dataobject and this data is later retrieved in the DragDrop method. |
|