[Mono-bugs] [Bug 78370][Nor] New - [PATCH] PropertyGrid misses those properties that does not have TypeConverter

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 11 12:14:52 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78370

--- shadow/78370	2006-05-11 12:14:52.000000000 -0400
+++ shadow/78370.tmp.28447	2006-05-11 12:14:52.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 78370
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] PropertyGrid misses those properties that does not have TypeConverter
+
+With the following code, MS.NET shows FontObj as a property in the
+PropertyGrid. Mono shows nothing.
+
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+	class Target
+	{
+		public Font FontObj {
+			get { return font; }
+			set { font = value; }
+		}
+
+		Font font = new Font (FontFamily.GenericSerif, 1);
+	}
+
+	public static void Main ()
+	{
+		Application.Run (new Test ());
+	}
+
+	public Test ()
+	{
+		PropertyGrid p = new PropertyGrid ();
+		p.Dock = DockStyle.Fill;
+		Controls.Add (p);
+		p.SelectedObject = new Target ();
+	}
+}
+
+Patch being attached. However, I just don't understand the reason why
+TypeConverter is used. Thus the patch might be no-go.


More information about the mono-bugs mailing list