Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clear property container on designer unload so that the ComboBox of s…

…electable objects stays empty when the designer cannot be reloaded due to syntax errors.
  • Loading branch information...
commit ed91c296ff811c830e639aa5f235ef36afec9c75 1 parent 08ddba7
@dgrunwald dgrunwald authored
View
4 src/AddIns/DisplayBindings/FormsDesigner/Project/Src/DesignerViewContent.cs
@@ -477,6 +477,7 @@ void UnloadDesigner()
this.typeResolutionService = null;
this.loader = null;
+ UpdatePropertyPad();
foreach (KeyValuePair<Type, TypeDescriptionProvider> entry in this.addedTypeDescriptionProviders) {
TypeDescriptor.RemoveProvider(entry.Value, entry.Key);
@@ -767,6 +768,9 @@ protected void UpdatePropertyPad()
if (selectionService != null) {
UpdatePropertyPadSelection(selectionService);
}
+ } else {
+ propertyContainer.Host = null;
+ propertyContainer.SelectableObjects = null;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.