From e4d45fc46d10a558d7193fe48e0a8362e6ad6d17 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 12 Feb 2020 08:33:00 +0100 Subject: [PATCH] ISelectionModel implements INotifyPropertyChanged. This will be needed for monitoring the `AnchorIndex` in order to auto-scroll. --- src/Avalonia.Controls/ISelectionModel.cs | 3 ++- src/Avalonia.Controls/SelectionModel.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Avalonia.Controls/ISelectionModel.cs b/src/Avalonia.Controls/ISelectionModel.cs index aed21315bb..a939bfdc8c 100644 --- a/src/Avalonia.Controls/ISelectionModel.cs +++ b/src/Avalonia.Controls/ISelectionModel.cs @@ -5,10 +5,11 @@ using System; using System.Collections.Generic; +using System.ComponentModel; namespace Avalonia.Controls { - public interface ISelectionModel + public interface ISelectionModel : INotifyPropertyChanged { IndexPath AnchorIndex { get; set; } IndexPath SelectedIndex { get; set; } diff --git a/src/Avalonia.Controls/SelectionModel.cs b/src/Avalonia.Controls/SelectionModel.cs index ce8e53c994..325e2e8848 100644 --- a/src/Avalonia.Controls/SelectionModel.cs +++ b/src/Avalonia.Controls/SelectionModel.cs @@ -12,7 +12,7 @@ using Avalonia.Controls.Utils; namespace Avalonia.Controls { - public class SelectionModel : ISelectionModel, INotifyPropertyChanged, IDisposable + public class SelectionModel : ISelectionModel, IDisposable { private readonly SelectionNode _rootNode; private bool _singleSelect;