2008-09-12 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 12 Sep 2008 17:08:12 +0000 (17:08 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Fri, 12 Sep 2008 17:08:12 +0000 (17:08 -0000)
commit8fb9aa295c02a4adc7fe98e1237aa86953977f5f
tree49a302aab1e81b843bfe0548765f2dedacd8ee46
parent2960bbaadcfe23284a38b5fb8f0946f33fb02a5c
2008-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListBox.cs: When calling Items.Clear(), call
SelectedIndexCollection.ClearCore instead of normal Clear method, to
not fire any Selected*Changed event - this is done to match .net and
don't have invalid values when changing the DataSourceProperty.
Fixes #424273.

svn path=/trunk/mcs/; revision=112895
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBox.cs