summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TrackableCollection.cs
blob: 959007ad9351df52d9dd273757dcdc4b6d85f3a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Collections.ObjectModel;

namespace Xamarin.Forms
{
	internal class TrackableCollection<T> : ObservableCollection<T>
	{
		public event EventHandler Clearing;

		protected override void ClearItems()
		{
			Clearing?.Invoke(this, EventArgs.Empty);
			base.ClearItems();
		}
	}
}