/// <inheritdoc/> public override void ItemsChanged(IEnumerable items, NotifyCollectionChangedEventArgs e) { PdmLogger.Log(2, PdmLogger.IndentEnum.Nothing, $"ItemsChanged {Id} Current Items {Items} New Items {items} "); base.ItemsChanged(items, e); if (e.Action != NotifyCollectionChangedAction.Add) { ItemContainerSync.ItemsChanged(Owner, null, e); } else { Owner.InvalidateMeasure(); } }
/// <summary> /// Called when the items for the presenter change, either because <see cref="Items"/> /// has been set, the items collection has been modified, or the panel has been created. /// </summary> /// <param name="e">A description of the change.</param> /// <remarks> /// The panel is guaranteed to be created when this method is called. /// </remarks> protected virtual void ItemsChanged(NotifyCollectionChangedEventArgs e) { ItemContainerSync.ItemsChanged(this, Items, e); }
/// <inheritdoc/> public override void ItemsChanged(IEnumerable items, NotifyCollectionChangedEventArgs e) { base.ItemsChanged(items, e); ItemContainerSync.ItemsChanged(Owner, items, e); Owner.InvalidateMeasure(); }