currency entry. functioning readonly template.
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
Margin="{TemplateBinding Padding}">
<DockPanel>
<StackPanel Orientation="Horizontal">
- <TextBlock Text="{TemplateBinding Text}"
+ <TextPresenter Name="PART_TextPresenter"
+ Text="{TemplateBinding Text, Mode=TwoWay}"
+ CaretIndex="{TemplateBinding CaretIndex}"
+ SelectionStart="{TemplateBinding SelectionStart}"
+ SelectionEnd="{TemplateBinding SelectionEnd}"
TextAlignment="{TemplateBinding TextAlignment}"
TextWrapping="{TemplateBinding TextWrapping}"
+ PasswordChar="{TemplateBinding PasswordChar}"
+ RevealPassword="{TemplateBinding RevealPassword}"
+ SelectionBrush="{TemplateBinding SelectionBrush}"
+ SelectionForegroundBrush="{TemplateBinding SelectionForegroundBrush}"
+ CaretBrush="{TemplateBinding CaretBrush}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
<TextBlock Margin="5 0 0 0"

MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml.cs
@@ -282,10 +282,13 @@ namespace WalletWasabi.Fluent.Controls
_swapButton = e.NameScope.Find<Button>("PART_SwapButton");
+ if (_swapButton is { })
+ {
_swapButton.Click += SwapButtonOnClick;
_disposable.Add(Disposable.Create(() => _swapButton.Click -= SwapButtonOnClick));
}
+ }
private void SwapButtonOnClick(object? sender, RoutedEventArgs e)
{

currency entry. functioning readonly template.