Browse Source
Merge pull request #6270 from MarchingCube/disable-text-search
Disable text search by default.
pull/6283/head
Dariusz Komosiński
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
1 deletions
-
src/Avalonia.Controls/ComboBox.cs
-
src/Avalonia.Controls/Primitives/SelectingItemsControl.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>
|
|
|
|
|
|
|
|
@ -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
|
|
|
|
|