Jelajahi Sumber

#2356 Small rename Objects to Items

MonkAlex 6 tahun lalu
induk
melakukan
1114df5d45

+ 1 - 1
src/Avalonia.Controls/Generators/TreeContainerIndex.cs

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

+ 1 - 1
src/Avalonia.Controls/TreeView.cs

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