Browse Source

Merge branch 'feature/selectionmodel' into feature/selectionmodel-changed-notifications

pull/3470/head
Steven Kirk 7 years ago
parent
commit
588c24ae2f
  1. 3
      src/Avalonia.Controls/ISelectionModel.cs
  2. 2
      src/Avalonia.Controls/SelectionModel.cs

3
src/Avalonia.Controls/ISelectionModel.cs

@ -5,10 +5,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
namespace Avalonia.Controls namespace Avalonia.Controls
{ {
public interface ISelectionModel public interface ISelectionModel : INotifyPropertyChanged
{ {
IndexPath AnchorIndex { get; set; } IndexPath AnchorIndex { get; set; }
IndexPath SelectedIndex { get; set; } IndexPath SelectedIndex { get; set; }

2
src/Avalonia.Controls/SelectionModel.cs

@ -13,7 +13,7 @@ using Avalonia.Controls.Utils;
namespace Avalonia.Controls namespace Avalonia.Controls
{ {
public class SelectionModel : ISelectionModel, INotifyPropertyChanged, IDisposable public class SelectionModel : ISelectionModel, IDisposable
{ {
private readonly SelectionNode _rootNode; private readonly SelectionNode _rootNode;
private bool _singleSelect; private bool _singleSelect;

Loading…
Cancel
Save