Browse Source

Merge pull request #4884 from mrj001/Issue4883

Fixed returns value; Issue 4883
pull/4895/head
Dariusz Komosiński 5 years ago
committed by GitHub
parent
commit
84dfb4e518
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Controls/ItemsControl.cs

2
src/Avalonia.Controls/ItemsControl.cs

@ -169,7 +169,7 @@ namespace Avalonia.Controls
/// </summary>
/// <param name="items">The collection.</param>
/// <param name="index">The index.</param>
/// <returns>The index of the item or -1 if the item was not found.</returns>
/// <returns>The item at the given index or null if the index is out of bounds.</returns>
protected static object ElementAt(IEnumerable items, int index)
{
if (index != -1 && index < items.Count())

Loading…
Cancel
Save