[Mono-bugs] [Bug 384184] New: PropertyGrid: Collection property should always be no-read-only even if no setter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 27 09:12:00 EDT 2008


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: contact at i-nz.net
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list