[Mono-bugs] [Bug 409028] New: [REGRESSION]PropertyGrid: Value type properties with no set accessor should display read-only

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 14 15:21:37 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=409028


           Summary: [REGRESSION]PropertyGrid: Value type properties with no
                    set accessor should display read-only
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Minor
          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: ---


Created an attachment (id=227672)
 --> (https://bugzilla.novell.com/attachment.cgi?id=227672)
Screenshot

For instance, the ToolBarButton.Rectangle property[1] on MSFT is displayed
read-only (greyed) as are all the sub properties.  On Mono the property and
sub-properties are both displayed normal non-greyed (the sub-properties
actually in bold).  No edit is allowed to the property.  The sub-properties can
be edited, but any edits are discarded.
[1. On a item in the ToolBar.Buttons collection]

The property has no set accessor, (and has no attributes).  Since Rectangle is
a value type, calling any set property on the value returned by the get
accessor is pointless as.  it is a copy and this any edits are discarded. 
(Correct?)

Thus such properties should be displayed read-only.  This was correct in Mono
1.9.  See screenshot.  Repro with attached updated 'PG with many types' app,
see "NoSetter" category.


-- 
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