* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / PropertyGrid.cs
index de1688793581fec14a9214406bc8aa6c2ccec7ce..72d5958de1ea09d33a48eb58607adf17b7c63d4a 100644 (file)
@@ -425,7 +425,8 @@ namespace System.Windows.Forms {
                                }
 
                                property_sort = value;
-                               
+
+                               UpdateToolBarButtons();
                                ReflectObjects();
                                property_grid_view.Refresh();
                                
@@ -913,9 +914,6 @@ namespace System.Windows.Forms {
                        else if (e.Button == categorized_toolbarbutton) {
                                this.PropertySort = PropertySort.Categorized;
                        }
-                       UpdateToolBarButtons();
-                       ReflectObjects();
-                       property_grid_view.Refresh();
                }
 
                internal void UpdateToolBarButtons () {
@@ -1007,7 +1005,12 @@ namespace System.Windows.Forms {
                // as we can not change the color for BorderStyle.FixedSingle and we need the correct
                // ClientRectangle so that the ScrollBar doesn't draw over the border we need this class
                internal class BorderHelperControl : Control {
-                       
+
+                       public BorderHelperControl ()
+                       {
+                               BackColor = ThemeEngine.Current.ColorWindow;
+                       }
+
                        protected override void OnPaint (PaintEventArgs e)
                        {
                                e.Graphics.DrawRectangle (SystemPens.ControlDark, 0 , 0 , Width - 1, Height - 1);