[Mono-bugs] [Bug 78813][Nor] Changed - ListTextBox: Items are not sorted with Sorted=true
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jul 11 03:01:09 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by unserkonig at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78813
--- shadow/78813 2006-07-10 19:35:11.000000000 -0400
+++ shadow/78813.tmp.2721 2006-07-11 03:01:09.000000000 -0400
@@ -61,6 +61,20 @@
case
}
}
------- Additional Comments From peter at novonyx.com 2006-07-10 19:35 -------
Please don't use pastebin for code samples.
+
+------- Additional Comments From unserkonig at gmail.com 2006-07-11 03:01 -------
+Sorry for using pastebin (having problems with my current connection,
+I hope to get it fixed in these days :| ).
+
+About the bug, I think the problem can be found in
+ListBox.CollectionChanged () internal method. To be precise, in :
+
+if (!IsHandleCreated || suspend_layout)
+ return;
+
+The added items aren't sorted, because the Handle hasn't been created
+at the time. I tried calling Sort () before this check, and _appears_
+to work just fine. I will take a deeper look in the meantime.
More information about the mono-bugs
mailing list