yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

ListBase ItemInsert throws an error in WPF if the InsertItem is not overridden and does not fire any Item Added events. #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following changes were made in rev855( 
http://code.google.com/p/nettiers/source/detail?r=855) due to the following 
forum post: http://community.codesmithtools.com/nettiers/f/16/t/11623.aspx.

However, these changes cause two-way databinding to not work properly as 
described here: http://community.codesmithtools.com/nettiers/f/16/t/11751.aspx

I've narrowed down both issues to this line of code which was removed for WPF 
because it causes the error:

           OnListChanged(new ListChangedEventArgs(ListChangedType.ItemAdded, index)); 

What do you guys think we should do?

Original issue reported on code.google.com by bniemyjski on 9 Feb 2011 at 11:56

GoogleCodeExporter commented 9 years ago
Added some documentation to this method in revision 879.

Original comment by bniemyjski on 10 Feb 2011 at 7:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Work around: (as documented in code by bniemyj...@gmail.com)

Remove the "InsertItem" method in ListBase.cst on line 229 (revision 879)

Original comment by stephen....@gmail.com on 21 Feb 2011 at 3:27