basic working currency entry box.
MODIFY
WalletWasabi.Fluent/App.axaml
WalletWasabi.Fluent/App.axaml
<StyleInclude Source="avares://WalletWasabi.Fluent/Icons/Icons.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Styles/Styles.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/ContentArea.axaml" />
- <StyleInclude Source="avares://WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/InfoMessage.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/Dialog.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/ProgressRingArc.axaml" />

MODIFY
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml
</Styles.Resources>
<Style Selector="c|CurrencyEntryBox">
+ <Setter Property="Foreground" Value="{DynamicResource TextControlForeground}" />
+ <Setter Property="Background" Value="{DynamicResource TextControlBackground}" />
+ <Setter Property="BorderBrush" Value="{DynamicResource TextControlBorderBrush}" />
+ <Setter Property="BorderThickness" Value="{DynamicResource TextControlBorderThemeThickness}" />
+ <Setter Property="FontSize" Value="{DynamicResource ControlContentThemeFontSize}" />
+ <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
+ <Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
+ <Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
<Setter Property="Template">
<ControlTemplate>
<DockPanel>
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
MinWidth="{TemplateBinding MinWidth}"
- MinHeight="{TemplateBinding MinHeight}">
- </Border>
+ MinHeight="{TemplateBinding MinHeight}" />
<Border
Margin="{TemplateBinding BorderThickness}">
<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" Margin="{TemplateBinding Padding}">
+ <ContentPresenter Grid.Column="0" Grid.ColumnSpan="1"
+ Content="{TemplateBinding InnerLeftContent}" />
+ <DockPanel 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)}"
+ <ScrollViewer
+ HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
+ <DockPanel>
+ <TextBlock Name="PART_ConversionWatermark"
+ DockPanel.Dock="Right"
+ Opacity="0.5"
+ Text="{TemplateBinding Conversion}"
+ IsVisible="{TemplateBinding Conversion, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
<Panel>
<TextBlock Name="PART_Watermark"
Opacity="0.5"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Panel>
+ </DockPanel>
</ScrollViewer>
</DockPanel>
- <ContentPresenter Grid.Column="2" Grid.ColumnSpan="1" Content="{TemplateBinding InnerRightContent}" />
+ <ContentPresenter Grid.Column="2" Grid.ColumnSpan="1"
+ Content="{TemplateBinding InnerRightContent}" />
</Grid>
</Border>
</Panel>
<Setter Property="Padding" Value="0" />
<Setter Property="ContextMenu">
<ContextMenu>
- <MenuItem Header="Copy" Command="{Binding $parent[TextBox].Copy}" IsEnabled="{Binding $parent[TextBox].CanCopy}" InputGesture="{x:Static TextBox.CopyGesture}"/>
+ <MenuItem Header="Copy" Command="{Binding $parent[TextBox].Copy}"
+ IsEnabled="{Binding $parent[TextBox].CanCopy}" InputGesture="{x:Static TextBox.CopyGesture}" />
</ContextMenu>
</Setter>
<Setter Property="Template">
<ControlTemplate>
- <ScrollViewer HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
+ <ScrollViewer
+ HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}">
<Panel>
<TextPresenter Name="PART_TextPresenter"

MODIFY
WalletWasabi.Fluent/Styles/Styles.axaml
WalletWasabi.Fluent/Styles/Styles.axaml
<StyleInclude Source="avares://WalletWasabi.Fluent/Styles/SplitView.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Styles/TextBox.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Styles/HyperlinkButton.axaml" />
+ <StyleInclude Source="avares://WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml" />
</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" />
+ <c:CurrencyEntryBox x:Name="amountTb" ConversionRate="32212.00" CurrencyCode="USD" />
</StackPanel>
<StackPanel>

basic working currency entry box.