File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Microsoft.VisualStudio.Editors/DesignerFramework Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ Namespace Microsoft.VisualStudio.Editors.DesignerFramework
88
88
_host = DirectCast (GetService( GetType (IDesignerHost)), IDesignerHost)
89
89
If _host IsNot Nothing AndAlso Not _host.Loading Then
90
90
PopulateView()
91
- EnableUndo()
92
91
End If
93
92
94
93
AddHandler surface.Loaded, AddressOf OnLoaded
@@ -238,6 +237,10 @@ Namespace Microsoft.VisualStudio.Editors.DesignerFramework
238
237
Protected Overrides Sub OnCreate()
239
238
MyBase .OnCreate()
240
239
240
+ _host = DirectCast (GetService( GetType (IDesignerHost)), IDesignerHost)
241
+ If _host IsNot Nothing AndAlso Not _host.Loading Then
242
+ EnableUndo()
243
+ End If
241
244
End Sub
242
245
243
246
''' <summary>
You can’t perform that action at this time.
0 commit comments