Dual Currency Input Minor improvement
MODIFY
WalletWasabi.Fluent/Controls/DualCurrencyEntryBox.axaml.cs
WalletWasabi.Fluent/Controls/DualCurrencyEntryBox.axaml.cs
@@ -372,15 +372,20 @@ public class DualCurrencyEntryBox : UserControl
if (IsConversionReversed)
{
- _leftEntryBox.HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Right;
- _rightEntryBox.HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Stretch;
+ _leftEntryBox.TextAlignment = Avalonia.Media.TextAlignment.Right;
+ _rightEntryBox.TextAlignment = Avalonia.Media.TextAlignment.Left;
+ _leftEntryBox.HorizontalContentAlignment = Avalonia.Layout.HorizontalAlignment.Right;
+ _rightEntryBox.HorizontalContentAlignment = Avalonia.Layout.HorizontalAlignment.Left;
+
grid?.Children.Add(_rightEntryBox);
grid?.Children.Add(_leftEntryBox);
}
else
{
- _leftEntryBox.HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Stretch;
- _rightEntryBox.HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Right;
+ _leftEntryBox.TextAlignment = Avalonia.Media.TextAlignment.Left;
+ _rightEntryBox.TextAlignment = Avalonia.Media.TextAlignment.Right;
+ _leftEntryBox.HorizontalContentAlignment = Avalonia.Layout.HorizontalAlignment.Left;
+ _rightEntryBox.HorizontalContentAlignment = Avalonia.Layout.HorizontalAlignment.Right;
grid?.Children.Add(_leftEntryBox);
grid?.Children.Add(_rightEntryBox);
}

Dual Currency Input Minor improvement