test: add basic unit test, fix a search text issue.

This commit is contained in:
rabbitism
2025-09-15 15:59:25 +08:00
parent 1a9f2e9945
commit 13008225c0
3 changed files with 721 additions and 8 deletions

View File

@@ -431,7 +431,7 @@ public partial class MultiAutoCompleteBox
/// The search mode is automatically set to Custom if you set the
/// TextFilter property.
/// </remarks>
public AutoCompleteFilterPredicate<string?>? TextFilter
public AutoCompleteFilterPredicate<string> TextFilter
{
get => GetValue(TextFilterProperty);
set => SetValue(TextFilterProperty, value);

View File

@@ -1257,15 +1257,8 @@ public partial class MultiAutoCompleteBox : TemplatedControl, IInnerContentContr
}
else
{
// TODO implement selection.
/*
SearchText = string.Empty;
if (SelectedItem != null) _skipSelectedItemTextUpdate = true;
SetCurrentValue(SelectedItemProperty, null);
if (IsDropDownOpen) SetCurrentValue(IsDropDownOpenProperty, false);
*/
}
}