https://bugzilla.novell.com/show_bug.cgi?id=384184
Summary: PropertyGrid: Collection property should always be no-
read-only even if no setter
Product: Mono: Class Libraries
Version: 1.9.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
It appears that simply all collection properties are non-read-only, regardless
of whether they have a set_ property or ReadOnlyAttribute.
((Discussion:
All(?!) the collection properties on SWF controls are currently uneditable in
PropertyGrid (e.g. "Items" on various controls), after much investigation this
was found to be because such properties have no setter, and thus PG marks them
as read-only. Hacking GridEntry.IsReadOnly to change this makes them correctly
edittable (via List-/StringCollectionEditor etc). Yippee.
But what's the combination of circumstances that makes them non-read-only?
Simply that every collection property is non-read-only even without a setter?
Or with an editor assigned or ...?
With my "many-properties" repro app the setter of a collection property is
*only* ever called if the property is an Array and its value was null before
edit.
After more testing, it appears that simply all collection properties are
non-read-only.
))
--
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