Browse Source

Add SelectAll and UnselectAll to ListBox.

Steven Kirk 6 years ago
parent
commit
ac59468ddc
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/Avalonia.Controls/ListBox.cs

+ 10 - 0
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()
         {