This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I'm getting an unhandled exception of type 'System.NullReferenceException' in Mindscape.WpfElements.dll. I have an object that has a generic dictionary of items displayed in the PropertyGrid. When you press the delete button next to any of the items, the control throws the error above. It appears to be in the "RemoveFromParentCollection" method of the Mindscape.WpfElements.PropertyEditing.CollectionElement class if that's of any help. I'll work-a-round for now. Just thought you should know. |
|
|
Hello It sounds like you might have an older version of WPF Elements 6.0. Please go to your Mindscape account page and download the nightly build of WPF Elements 6.0 or better yet - 7.0. If this does not work please let me know. -Jason Fauchelle |
|
|
Thanks Jason, I've installed 7.0 and the problem goes away. Thanks! Now the problem is that the control doesn't update to remove the deleted item from the display so that if you can click the delete again and the control throws a "The given key was not present in the dictionary." Better, but not right. Cheers, -Nelson Drueding BD Biosciences |
|
|
Hello Nelson Thanks for pointing this out. What I've been seeing is slightly different. I seem to be getting that error as soon as I click the remove button in the latest version of 7.0. I've resolved this issue which may also fix your issue too. The fix for this will be in the next nightly build. This will be available at around 1200 GMT from here: http://www.mindscapehq.com/products/wpfelements/nightly-builds If the problem remains, please send me a repro project, or at least code for a model object containing a dictionary that causes this issue. -Jason Fauchelle |
|