Browse Source

Merge pull request #2366 from MonkAlex/master

#2356 Small rename Objects to Items
pull/2374/head
Jumar Macato 7 years ago
committed by GitHub
parent
commit
d491abc2f1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/Generators/TreeContainerIndex.cs
  2. 2
      src/Avalonia.Controls/TreeView.cs

2
src/Avalonia.Controls/Generators/TreeContainerIndex.cs

@ -39,7 +39,7 @@ namespace Avalonia.Controls.Generators
/// <summary> /// <summary>
/// Gets the items of currently materialized containers. /// Gets the items of currently materialized containers.
/// </summary> /// </summary>
public IEnumerable<object> Objects => _containerToItem.Values; public IEnumerable<object> Items => _containerToItem.Values;
/// <summary> /// <summary>
/// Adds an entry to the index. /// Adds an entry to the index.

2
src/Avalonia.Controls/TreeView.cs

@ -411,7 +411,7 @@ namespace Avalonia.Controls
if (this.SelectionMode == SelectionMode.Multiple && Match(keymap.SelectAll)) if (this.SelectionMode == SelectionMode.Multiple && Match(keymap.SelectAll))
{ {
SelectingItemsControl.SynchronizeItems(SelectedItems, ItemContainerGenerator.Index.Objects); SelectingItemsControl.SynchronizeItems(SelectedItems, ItemContainerGenerator.Index.Items);
e.Handled = true; e.Handled = true;
} }
} }

Loading…
Cancel
Save