Steven Kirk
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
12 additions and
12 deletions
-
src/Avalonia.Controls/ItemsControl.cs
-
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs
|
|
|
@ -298,6 +298,18 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public IEnumerable<Control> GetRealizedContainers() => Presenter?.GetRealizedContainers() ?? Array.Empty<Control>(); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Scrolls the specified item into view.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="index">The index of the item.</param>
|
|
|
|
public void ScrollIntoView(int index) => Presenter?.ScrollIntoView(index); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Scrolls the specified item into view.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
public void ScrollIntoView(object item) => ScrollIntoView(ItemsView.IndexOf(item)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Returns the <see cref="ItemsControl"/> that owns the specified container control.
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
@ -409,18 +409,6 @@ namespace Avalonia.Controls.Primitives |
|
|
|
EndUpdating(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Scrolls the specified item into view.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="index">The index of the item.</param>
|
|
|
|
public void ScrollIntoView(int index) => Presenter?.ScrollIntoView(index); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Scrolls the specified item into view.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
public void ScrollIntoView(object item) => ScrollIntoView(ItemsView.IndexOf(item)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the value of the <see cref="IsSelectedProperty"/> on the specified control.
|
|
|
|
/// </summary>
|
|
|
|
|