https://bugzilla.novell.com/show_bug.cgi?id=395345
Summary: PropertyGrid: items are unsorted in HEAD
Product: Mono: Class Libraries
Version: SVN
Platform: Other
OS/Version: Other
Status: ASSIGNED
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Since r104212 (I presume), the items in a PropertyGrid are unsorted, both in
alphabetical and category mode.
In Category mode the categories should appear in alphabetical order and the
items within each category should be sorted. Now, for SWF Button for example,
within category Appearance we see: BackColor, FlatStyle, ..., Text, *but* then
BackgroundImage, Cursor, etc. Should of course be: BackColor, BackgroundImage,
Cursor, FlatStyle, etc. (Remember that missing attributes, bug , cause
BackgroundImageLayout to appear in the Misc category). A similar effect is
seen in Alphabetical mode.
----
Would a simpler change have worked, something like this?
int unique = 0;
internal void Add (GridItem grid_item)
{
if (!list.ContainsKey(grid_item.Label))
list.Add (grid_item.Label, grid_item);
else
list.Add(grid_item.Label + "_" + (++unique).ToString(), grid_item);
}
Don't know when GridItemCollection.this[String] is used, but it can only return
one of the duplicated whatever the implementation.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs