Browse Source
Merge pull request #12217 from lhsrebel72/master
added clear function to combobox
pull/12226/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
src/Avalonia.Controls/ComboBox.cs
|
|
|
@ -517,5 +517,14 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Clears the selection
|
|
|
|
/// </summary>
|
|
|
|
public void Clear() |
|
|
|
{ |
|
|
|
SelectedItem = null; |
|
|
|
SelectedIndex = -1; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|