protected virtual bool OnReceiveWeakEvent(Type managerType, object sender, EventArgs e) { if ((managerType == null) || (sender == null) || (e == null)) { return(false); } if (managerType == typeof(CollectionChangedEventManager)) { var eventArgs = ( NotifyCollectionChangedEventArgs )e; if (m_itemProperties == sender) { this.OnItemPropertiesCollectionChanged(sender, eventArgs); } else if (m_detailDescriptions == sender) { } } else if (managerType == typeof(InitializeItemPropertyEventManager)) { var eventArgs = ( InitializeItemPropertyEventArgs )e; if (m_itemProperties == sender) { var itemProperty = eventArgs.ItemProperty; var itemPropertyRoute = DataGridItemPropertyRoute.Create(itemProperty); ItemsSourceHelper.SetPropertyDescriptionsFromItemProperty(m_defaultPropertyDescriptions, null, null, m_itemType, itemPropertyRoute); ItemsSourceHelper.InitializePropertyDescriptions(m_defaultPropertyDescriptions, itemPropertyRoute, m_itemType, this.DefaultPropertyDescriptionsCreated); } } else { return(false); } return(true); }