|
|
@@ -377,7 +377,6 @@ namespace Avalonia.Controls
|
|
|
protected virtual void ItemsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
|
|
|
{
|
|
|
UpdateItemCount();
|
|
|
- Presenter?.ItemsChanged(e);
|
|
|
|
|
|
switch (e.Action)
|
|
|
{
|
|
|
@@ -390,6 +389,8 @@ namespace Avalonia.Controls
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+ Presenter?.ItemsChanged(e);
|
|
|
+
|
|
|
var collection = sender as ICollection;
|
|
|
PseudoClasses.Set(":empty", collection == null || collection.Count == 0);
|
|
|
PseudoClasses.Set(":singleitem", collection != null && collection.Count == 1);
|