@@ -49,7 +49,6 @@ namespace MonoDevelop.DesignerSupport
49
49
class MacPropertyGrid : NSStackView , IPropertyGrid
50
50
{
51
51
MacPropertyEditorPanel propertyEditorPanel ;
52
-
53
52
PropertyPadEditorProvider editorProvider ;
54
53
55
54
NSScrollView scrollView ;
@@ -80,18 +79,9 @@ public MacPropertyGrid ()
80
79
81
80
AddArrangedSubview ( scrollView ) ;
82
81
83
- propertyEditorPanel . Focused += PropertyEditorPanel_Focused ;
84
-
85
82
//propertyEditorPanel.PropertiesChanged += PropertyEditorPanel_PropertiesChanged;
86
83
}
87
84
88
- void Widget_Focused ( object o , Gtk . FocusedArgs args )
89
- {
90
- propertyEditorPanel . Window . MakeFirstResponder ( propertyEditorPanel ) ;
91
- }
92
-
93
- void PropertyEditorPanel_Focused ( object sender , EventArgs e ) => Focused ? . Invoke ( this , EventArgs . Empty ) ;
94
-
95
85
public override void SetFrameSize ( CGSize newSize )
96
86
{
97
87
scrollView . SetFrameSize ( newSize ) ;
@@ -111,7 +101,7 @@ public void OnPadContentShown ()
111
101
if ( editorProvider == null ) {
112
102
editorProvider = new PropertyPadEditorProvider ( ) ;
113
103
propertyEditorPanel . TargetPlatform = new TargetPlatform ( editorProvider ) {
114
- AutoExpandGroups = new string [ ] { "Build" , "Misc" , "NuGet" , "Reference" }
104
+ AutoExpandAll = true
115
105
} ;
116
106
propertyEditorPanel . ArrangeMode = PropertyArrangeMode . Category ;
117
107
}
@@ -133,9 +123,6 @@ public void SetCurrentObject (object lastComponent, object [] propertyProviders)
133
123
134
124
protected override void Dispose ( bool disposing )
135
125
{
136
- if ( propertyEditorPanel != null ) {
137
- propertyEditorPanel . Focused -= PropertyEditorPanel_Focused ;
138
- }
139
126
base . Dispose ( disposing ) ;
140
127
}
141
128
0 commit comments