diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/AbstractEventHandlerService.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/AbstractEventHandlerService.cs index dad38625fc..48915e8b52 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/AbstractEventHandlerService.cs +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.AddIn/Src/AbstractEventHandlerService.cs @@ -88,10 +88,15 @@ namespace ICSharpCode.WpfDesign.AddIn object[] attributes = item.ComponentType.GetCustomAttributes(typeof(DefaultEventAttribute), true); if (attributes.Length == 1) { DefaultEventAttribute dae = (DefaultEventAttribute)attributes[0]; - DesignItemProperty property = item.Properties.GetProperty(dae.Name); - if (property != null && property.IsEvent) { - return property; - } + // To filter controls derived from ItemsControl + if (dae.Name != "OnItemsChanged") + { + DesignItemProperty property = item.Properties.GetProperty(dae.Name); + if (property != null && property.IsEvent) + { + return property; + } + } } return null; }