https://bugzilla.novell.com/show_bug.cgi?id=675439
https://bugzilla.novell.com/show_bug.cgi?id=675439#c0 Summary: Adding properties to controls by subclassing TypeDescriptionProvider isn't possible Classification: Mono Product: Mono: Class Libraries Version: 2.10.x Platform: x86 OS/Version: Windows 7 Status: NEW Severity: Normal Priority: P5 - None Component: System AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=416434) --> (http://bugzilla.novell.com/attachment.cgi?id=416434) Unit test to demonstrate the expected behaviour User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5 As a control author, it is useful to provide new bindable properties at runtime to existing or 3rd party controls without subclassing. TypeDescriptionProvider.AddProvider is a useful way of achieving this which is not currently implemented correctly in mono. Reproducible: Always Steps to Reproduce: Below is only summary. See the attached test case. 1. Subclass TypeDescriptionProvider and override GetTypeDescriptor. 2. Subclass CustomTypeDescriptor and override GetProperties to return a custom property. 3. Call TypeDescriptor.GetProperties(object) and examine the properties returned. Actual Results: The overridden TypeDescriptionProvider is not used. Expected Results: The overriden TypeDescriptionProvider should be used, and the custom property returned from CustomTypeDescriptor.GetProperties() should be returned from TypeDescriptor.GetProperties(object). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
