[Mono-bugs] [Bug 396076] New: PropertyGrid: ignores set of Padding "All" value

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 30 17:25:51 EDT 2008


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


           Summary: PropertyGrid: ignores set of Padding "All" value
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          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: ---


PropertyGrid fails to set the 'All' sub-property of a Padding type property
(e.g. Control.Margin, Control.Padding), any change is ignored.  After
investigation  it's apparent that actually PaddingConverter never uses the
"All" value in method CreateInstance.

Patch attached.  Fixes two bugs.


Enabling the tests to run also on MSFT is difficult as the implementation there
needs the "context" argument supplied, throwing ArgNullEx otherwise.  I hacked
up a fake ITypeDescriptorContext and saw the converter access its PD and
Instance properties.  Anyway at that point I gave up since our new behaviour
seems correct anyway.


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