Author: ivanz
Date: 2008-01-21 13:00:11 -0500 (Mon, 21 Jan 2008)
New Revision: 93429

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
Log:
2008-01-21  Ivan N. Zlatev  <[EMAIL PROTECTED]>

         * PropertyGrid.cs: Process Browsable properties with 
         DesignerSerializationVisibilityAttribute.Content as being expandable.
         This seems also what MS does. Without this e.g SplitContainer.Panel1/2
         will not be expandable. We should be nested components-friendly now.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-01-21 17:55:12 UTC (rev 93428)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-01-21 18:00:11 UTC (rev 93429)
@@ -1,3 +1,10 @@
+2008-01-21  Ivan N. Zlatev  <[EMAIL PROTECTED]>
+
+        * PropertyGrid.cs: Process Browsable properties with 
+        DesignerSerializationVisibilityAttribute.Content as being expandable.
+        This seems also what MS does. Without this e.g SplitContainer.Panel1/2
+        will not be expandable. We should be nested components-friendly now.
+
 2008-01-21  Andreia Gaita <[EMAIL PROTECTED]>
 
        * WebBrowserBase.cs: Check if control was loaded properly, 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs  
2008-01-21 17:55:12 UTC (rev 93428)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs  
2008-01-21 18:00:11 UTC (rev 93429)
@@ -1486,9 +1486,13 @@
 
                        PropertyDescriptor property = 
grid_entry.PropertyDescriptor;
 
-                       if (property == null || property.Converter == null || 
!property.Converter.GetPropertiesSupported ())
+                       if (property == null || property.Converter == null)
                                return;
 
+                       if (!property.Converter.GetPropertiesSupported () && 
+                           !property.Attributes.Contains 
(DesignerSerializationVisibilityAttribute.Content))
+                               return;
+
                        object [] objs = grid_entry.SelectedObjects;
                        object [] subobjs = new object [objs.Length];
                        

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to