Implement suggestions comparison case sensistivity.
MODIFY
WalletWasabi.Fluent/Controls/TagsBox.axaml.cs
WalletWasabi.Fluent/Controls/TagsBox.axaml.cs
@@ -28,6 +28,9 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<char> TagSeparatorProperty =
AvaloniaProperty.Register<TagsBox, char>(nameof(TagSeparator), defaultValue: ' ');
+ public static readonly StyledProperty<bool> SuggestionsAreCaseSensitiveProperty =
+ AvaloniaProperty.Register<TagsBox, bool>(nameof(SuggestionsAreCaseSensitive), defaultValue: true);
+
public static readonly DirectProperty<TagsBox, IEnumerable<string>> ItemsProperty =
AvaloniaProperty.RegisterDirect<TagsBox, IEnumerable<string>>(nameof(Items),
o => o.Items,
@@ -60,6 +63,7 @@ namespace WalletWasabi.Fluent.Controls
AvaloniaProperty.Register<TagsBox, bool>("IsReadOnly");
private TextBox _InternalACBTextBox;
+ private StringComparison _stringComparison;
[Content]
public IEnumerable<string> Items
@@ -104,6 +108,12 @@ namespace WalletWasabi.Fluent.Controls
set => SetValue(IsReadOnlyProperty, value);
}
+ public bool SuggestionsAreCaseSensitive
+ {
+ get => GetValue(SuggestionsAreCaseSensitiveProperty);
+ set => SetValue(SuggestionsAreCaseSensitiveProperty, value);
+ }
+
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
{
base.OnApplyTemplate(e);
@@ -377,6 +387,12 @@ namespace WalletWasabi.Fluent.Controls
{
PseudoClasses.Set(":readonly", IsReadOnly);
}
+ else if (e.Property == SuggestionsAreCaseSensitiveProperty)
+ {
+ _stringComparison = SuggestionsAreCaseSensitive
+ ? StringComparison.InvariantCultureIgnoreCase
+ : StringComparison.InvariantCulture;
+ }
}
internal void RemoveTargetTag(object? tag)

MODIFY
WalletWasabi.Fluent/Views/AddWallet/RecoverWalletView.axaml
WalletWasabi.Fluent/Views/AddWallet/RecoverWalletView.axaml
<c:TagsBox x:Name="SeedTagsBox"
DockPanel.Dock="Top"
ItemCountLimit="12"
+ SuggestionsAreCaseSensitive="True"
RestrictInputToSuggestions="True"
Items="{Binding Mnemonics}"
Suggestions="{Binding Suggestions}"

Implement suggestions comparison case sensistivity.