From 7be80b48f31c1a44dcd1aaba6014255b6c6e5397 Mon Sep 17 00:00:00 2001 From: BDisp Date: Tue, 28 May 2024 22:43:11 +0100 Subject: [PATCH] Added CollectionChanged event to the IListDataSource interface. --- Terminal.Gui/Views/ListView.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Terminal.Gui/Views/ListView.cs b/Terminal.Gui/Views/ListView.cs index bf2586185..1a9aff633 100644 --- a/Terminal.Gui/Views/ListView.cs +++ b/Terminal.Gui/Views/ListView.cs @@ -1,4 +1,6 @@ using System.Collections; +using System.Collections.ObjectModel; +using System.Collections.Specialized; using static Terminal.Gui.SpinnerStyle; namespace Terminal.Gui; @@ -6,6 +8,11 @@ namespace Terminal.Gui; /// Implement to provide custom rendering for a . public interface IListDataSource { + /// + /// Event to raise when an item is added, removed, or moved, or the entire list is refreshed. + /// + event NotifyCollectionChangedEventHandler CollectionChanged; + /// Returns the number of elements to display int Count { get; }