Browse Source

Merge pull request #6270 from MarchingCube/disable-text-search

Disable text search by default.
release/0.10.7
Dariusz Komosiński 5 years ago
committed by Dan Walmsley
parent
commit
0933599482
  1. 1
      src/Avalonia.Controls/ComboBox.cs
  2. 2
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

1
src/Avalonia.Controls/ComboBox.cs

@ -91,6 +91,7 @@ namespace Avalonia.Controls
FocusableProperty.OverrideDefaultValue<ComboBox>(true);
SelectedItemProperty.Changed.AddClassHandler<ComboBox>((x,e) => x.SelectedItemChanged(e));
KeyDownEvent.AddClassHandler<ComboBox>((x, e) => x.OnKeyDown(e), Interactivity.RoutingStrategies.Tunnel);
IsTextSearchEnabledProperty.OverrideDefaultValue<ComboBox>(true);
}
/// <summary>

2
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@ -96,7 +96,7 @@ namespace Avalonia.Controls.Primitives
/// Defines the <see cref="IsTextSearchEnabled"/> property.
/// </summary>
public static readonly StyledProperty<bool> IsTextSearchEnabledProperty =
AvaloniaProperty.Register<ItemsControl, bool>(nameof(IsTextSearchEnabled), true);
AvaloniaProperty.Register<ItemsControl, bool>(nameof(IsTextSearchEnabled), false);
/// <summary>
/// Event that should be raised by items that implement <see cref="ISelectable"/> to

Loading…
Cancel
Save