我正在使用Silverlight工具包ListBoxDragDropTarget並且在動態添加列表中使用它時出現錯誤。我動態地將包含列表的用戶控件添加到佈局網格中。當我將一個項目從一個列表拖動到另一個列表中時,出現以下異常。Silverlight ListBoxDragDropTarget動態添加列表中的錯誤
擲新錯誤(「未處理的錯誤在 Silverlight 2中應用價值不 不 MS.Internal.XcpImports.MethodEx(IntPtr的 PTR在預期範圍之內。
,字符串名稱,CValue [] cvData)\ n
在 MS.Internal.XcpImports.MethodPack(IntPtr的 objectPtr,字符串方法名,對象[] RAWDATA)\ n在 MS.Internal.XcpImports.Collection_Insert [T](PresentationFrameworkCollection1 collection, Int32 index, Object value)\n at System.Windows.PresentationFrameworkCollection
1.InsertImpl( Int32 index,O bject值)\ n在 System.Windows.Controls.ItemCollection.InsertImpl(的Int32 索引,對象的值)\ n在 System.Windows.Controls.ItemCollection.InsertInternal(的Int32 索引,對象的值)\ n在 系統.Windows.PresentationFrameworkCollection`1.Insert(的Int32 索引,T值)\ n在 System.Windows.Controls.ItemsControlExtensions.InsertItem(ItemsControl的 的是,的Int32索引,對象項)\ n
....