Integrate checkmark to textbox with `hasCheckMark` class
MODIFY
WalletWasabi.Fluent/Styles/TextBox.axaml
WalletWasabi.Fluent/Styles/TextBox.axaml
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors"
+ xmlns:i="using:Avalonia.Xaml.Interactivity"
xmlns:converters="using:WalletWasabi.Gui.Converters">
<Styles.Resources>
<Thickness x:Key="TextControlBorderThemeThickness">0,0,0,2</Thickness>
<DataValidationErrors DockPanel.Dock="Bottom" Margin="0 10 0 0" />
+ <DockPanel>
+ <PathIcon Classes="checkMark" Margin="15 0" VerticalAlignment="Center" DockPanel.Dock="Right">
+ <i:Interaction.Behaviors>
+ <behaviors:CheckMarkVisibilityBehavior OwnerTextBox="{Binding ., RelativeSource={RelativeSource TemplatedParent}}" />
+ </i:Interaction.Behaviors>
+ </PathIcon>
<Panel>
<Border
Name="PART_BorderElement"
</Border>
</Panel>
</DockPanel>
+ </DockPanel>
+
</ControlTemplate>
</Setter>
</Style>
<Setter Property="MinHeight" Value="20" />
</Style>
+ <Style Selector="TextBox:not(.hasCheckMark) /template/ PathIcon.checkMark">
+ <Setter Property="IsVisible" Value="False" />
+ </Style>
+
+ <Style Selector="TextBox.hasCheckMark /template/ PathIcon.checkMark">
+ <Setter Property="IsVisible" Value="True" />
+ </Style>
+
<Style Selector="TextBox.selectable_text_block">
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="Margin" Value="0" />

Integrate checkmark to textbox with `hasCheckMark` class