remove owner textbox.
MODIFY
WalletWasabi.Fluent/Behaviors/PasteButtonFlashBehavior.cs
WalletWasabi.Fluent/Behaviors/PasteButtonFlashBehavior.cs
@@ -20,16 +20,6 @@ namespace WalletWasabi.Fluent.Behaviors
public static readonly StyledProperty<string> CurrentAddressProperty =
AvaloniaProperty.Register<PasteButtonFlashBehavior, string>(nameof(FlashAnimation));
- public static readonly StyledProperty<TextBox?> OwnerTextBoxProperty =
- AvaloniaProperty.Register<CheckMarkVisibilityBehavior, TextBox?>(nameof(OwnerTextBox));
-
- [ResolveByName]
- public TextBox? OwnerTextBox
- {
- get => GetValue(OwnerTextBoxProperty);
- set => SetValue(OwnerTextBoxProperty, value);
- }
-
public string FlashAnimation
{
get => GetValue(FlashAnimationProperty);
@@ -64,7 +54,7 @@ namespace WalletWasabi.Fluent.Behaviors
.Subscribe(_ => AssociatedObject.Classes.Remove(FlashAnimation))
.DisposeWith(disposables);
- OwnerTextBox?.WhenAnyValue(x => x.Text)
+ this.WhenAnyValue(x => x.CurrentAddress)
.Subscribe(async _ => await CheckClipboardForValidAddressAsync())
.DisposeWith(disposables);
}
@@ -75,10 +65,9 @@ namespace WalletWasabi.Fluent.Behaviors
var textToPaste = await Application.Current.Clipboard.GetTextAsync();
- if (textToPaste != OwnerTextBox?.Text)
+ if (textToPaste != CurrentAddress)
{
- if (AddressStringParser.TryParse(textToPaste, Services.WalletManager.Network, out _) &&
- textToPaste != CurrentAddress)
+ if (AddressStringParser.TryParse(textToPaste, Services.WalletManager.Network, out _))
{
AssociatedObject?.Classes.Add(FlashAnimation);
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
NormalIcon="{StaticResource paste_regular}"
ClickIcon="{StaticResource copy_confirmed}">
<i:Interaction.Behaviors>
- <behaviors:PasteButtonFlashBehavior OwnerTextBox="toTb" FlashAnimation="flash" CurrentAddress="{Binding To}"/>
+ <behaviors:PasteButtonFlashBehavior FlashAnimation="flash" CurrentAddress="{Binding To}"/>
</i:Interaction.Behaviors>
</c:AnimatedButton>
<c:AnimatedButton IsVisible="{Binding IsQrButtonVisible}"

remove owner textbox.