Browse Source

set default value of IsTextSearchEnabled to true

pull/5422/head
luthfiampas 6 years ago
parent
commit
a4477e7de6
  1. 2
      src/Avalonia.Controls/ComboBox.cs
  2. 1
      tests/Avalonia.Controls.UnitTests/ComboBoxTests.cs

2
src/Avalonia.Controls/ComboBox.cs

@ -81,7 +81,7 @@ namespace Avalonia.Controls
/// Defines the <see cref="IsTextSearchEnabled"/> property. /// Defines the <see cref="IsTextSearchEnabled"/> property.
/// </summary> /// </summary>
public static readonly StyledProperty<bool> IsTextSearchEnabledProperty = public static readonly StyledProperty<bool> IsTextSearchEnabledProperty =
AvaloniaProperty.Register<ComboBox, bool>(nameof(IsTextSearchEnabled)); AvaloniaProperty.Register<ComboBox, bool>(nameof(IsTextSearchEnabled), true);
private string _textSearchTerm = string.Empty; private string _textSearchTerm = string.Empty;
private DispatcherTimer _textSearchTimer; private DispatcherTimer _textSearchTimer;

1
tests/Avalonia.Controls.UnitTests/ComboBoxTests.cs

@ -154,7 +154,6 @@ namespace Avalonia.Controls.UnitTests
{ {
var target = new ComboBox var target = new ComboBox
{ {
IsTextSearchEnabled = true,
Template = GetTemplate(), Template = GetTemplate(),
Items = items.Select(x => new ComboBoxItem { Content = x }) Items = items.Select(x => new ComboBoxItem { Content = x })
}; };

Loading…
Cancel
Save