currency conversion switch.
MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
<Grid ColumnDefinitions="Auto,*,Auto">
<ContentPresenter Grid.Column="0" Grid.ColumnSpan="1"
Content="{TemplateBinding InnerLeftContent}" />
- <DockPanel x:Name="PART_InnerDockPanel" Grid.Column="1" Grid.ColumnSpan="1"
+ <Panel x:Name="PART_InnerDockPanel" Grid.Column="1" Grid.ColumnSpan="1"
Margin="{TemplateBinding Padding}">
- <TextBlock Name="PART_FloatingWatermark"
- Foreground="{DynamicResource SystemAccentColor}"
- FontSize="{TemplateBinding FontSize}"
- Text="{TemplateBinding Watermark}"
- DockPanel.Dock="Top" />
<ScrollViewer
HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
<TextBlock Name="PART_ConversionWatermark"
DockPanel.Dock="Right"
Opacity="0.5"
- Text="{TemplateBinding Conversion}"
- IsVisible="{TemplateBinding Conversion, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
+ Text="{TemplateBinding ConversionText}"
+ IsVisible="{TemplateBinding ConversionText, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
<Panel>
Opacity="0.5"
Margin="5 0 0 0"
Text="{TemplateBinding CurrencyCode}"
- IsVisible="{TemplateBinding CurrencyCode, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
+ IsVisible="{TemplateBinding Text, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</StackPanel>
</Panel>
</DockPanel>
</ScrollViewer>
- </DockPanel>
+ </Panel>
<ContentPresenter Grid.Column="2" Grid.ColumnSpan="1"
Content="{TemplateBinding InnerRightContent}" />
</Grid>
</Border>
+ <Button x:Name="PART_SwapButton" HorizontalAlignment="Center" Content="Swap" />
</Panel>
</DockPanel>
</ControlTemplate>
</Style>
<Style
- Selector="c|CurrencyEntryBox:disabled /template/ TextBlock#PART_Watermark, TextBox:disabled /template/ TextBlock#PART_FloatingWatermark">
+ Selector="c|CurrencyEntryBox:disabled /template/ TextBlock#PART_Watermark">
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundDisabled}" />
</Style>
</Style>
<Style
- Selector="c|CurrencyEntryBox:pointerover /template/ TextBlock#PART_Watermark, TextBox:pointerover /template/ TextBlock#PART_FloatingWatermark">
+ Selector="c|CurrencyEntryBox:pointerover /template/ TextBlock#PART_Watermark">
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundPointerOver}" />
</Style>
</Style>
<Style
- Selector="c|CurrencyEntryBox:focus /template/ TextBlock#PART_Watermark, TextBox:focus /template/ TextBlock#PART_FloatingWatermark">
+ Selector="c|CurrencyEntryBox:focus /template/ TextBlock#PART_Watermark">
<Setter Property="Foreground" Value="{DynamicResource TextControlPlaceholderForegroundFocused}" />
</Style>
<Style Selector="c|CurrencyEntryBox:error /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource SystemControlErrorTextForegroundBrush}" />
</Style>
-
</Styles>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendView.axaml
<StackPanel>
<Label Content="_Amount:" Target="amountTb" />
- <c:CurrencyEntryBox x:Name="amountTb" ConversionRate="32212.00" CurrencyCode="BTC" ConversionCurrencyCode="USD" />
+ <c:CurrencyEntryBox x:Name="amountTb" Watermark="2.2 BTC" ConversionRate="32212.00" ConversionCurrencyCode="USD" />
</StackPanel>
<StackPanel>

currency conversion switch.