Fee display format name converter
MODIFY
WalletWasabi.Fluent/Views/Settings/BitcoinSettingsView.xaml
WalletWasabi.Fluent/Views/Settings/BitcoinSettingsView.xaml
<TextBlock Text="Network" />
<ComboBox HorizontalAlignment="Stretch"
Items="{Binding Networks}"
- SelectedItem="{Binding Network}">
- <!--<ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Converter={StaticResource NetworkStringConverter}}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>-->
- </ComboBox>
+ SelectedItem="{Binding Network}"/>
</StackPanel>
<DockPanel>

MODIFY
WalletWasabi.Fluent/Views/Settings/GeneralSettingsView.xaml
WalletWasabi.Fluent/Views/Settings/GeneralSettingsView.xaml
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:settings="clr-namespace:WalletWasabi.Fluent.ViewModels.Settings"
+ xmlns:conv="clr-namespace:WalletWasabi.Fluent.Converters"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="WalletWasabi.Fluent.Views.Settings.GeneralSettingsView"
x:DataType="settings:SettingsPageViewModel"
<StackPanel Spacing="10">
<TextBlock Text= "Fee Display Format" />
- <DropDown HorizontalAlignment="Stretch" Items="{Binding FeeDisplayFormats}" SelectedItem="{Binding SelectedFeeDisplayFormat}">
- <!--<DropDown.ItemTemplate>
+ <ComboBox HorizontalAlignment="Stretch" Items="{Binding FeeDisplayFormats}" SelectedItem="{Binding SelectedFeeDisplayFormat}">
+ <ComboBox.ItemTemplate>
<DataTemplate>
- <TextBlock Text="{Binding Converter={StaticResource FeeDisplayFormatStringConverter}}" />
+ <TextBlock Text="{Binding Converter={x:Static conv:EnumToFriendlyNameConverter.EnumToFriendlyName}}" />
</DataTemplate>
- </DropDown.ItemTemplate>-->
- </DropDown>
+ </ComboBox.ItemTemplate>
+ </ComboBox>
</StackPanel>
<StackPanel Spacing="10">

MODIFY
WalletWasabi.Gui/Models/FeeDisplayFormat.cs
WalletWasabi.Gui/Models/FeeDisplayFormat.cs
+using System.ComponentModel;
+
namespace WalletWasabi.Gui.Models
{
public enum FeeDisplayFormat
{
USD,
BTC,
+ [Description("sat/vByte")]
SatoshiPerByte,
Percentage
}

Fee display format name converter