Browse Source

Add SelectAll and UnselectAll to ListBox.

pull/2673/head
Steven Kirk 7 years ago
parent
commit
ac59468ddc
  1. 10
      src/Avalonia.Controls/ListBox.cs

10
src/Avalonia.Controls/ListBox.cs

@ -84,6 +84,16 @@ namespace Avalonia.Controls
set { SetValue(VirtualizationModeProperty, value); }
}
/// <summary>
/// Selects all items in the <see cref="ListBox"/>.
/// </summary>
public new void SelectAll() => base.SelectAll();
/// <summary>
/// Deselects all items in the <see cref="ListBox"/>.
/// </summary>
public new void UnselectAll() => base.UnselectAll();
/// <inheritdoc/>
protected override IItemContainerGenerator CreateItemContainerGenerator()
{

Loading…
Cancel
Save