Use Network types in the selection array, too.
MODIFY
WalletWasabi.Gui/Tabs/SettingsView.xaml
WalletWasabi.Gui/Tabs/SettingsView.xaml
<StackPanel Orientation="Vertical" Spacing="5">
<StackPanel Margin="0 10" Spacing="5">
<TextBlock>Network</TextBlock>
- <DropDown Items="{Binding Networks}" SelectedItem="{Binding Network, Converter={StaticResource NetworkStringConverter}}" />
+ <DropDown Items="{Binding Networks}" SelectedItem="{Binding Network}">
+ <DropDown.ItemTemplate>
+ <DataTemplate>
+ <TextBlock Text="{Binding Converter={StaticResource NetworkStringConverter}}" />
+ </DataTemplate>
+ </DropDown.ItemTemplate>
+ </DropDown>
</StackPanel>
<controls:GroupBox Title="{Binding Network, StringFormat=My Node for \{0\}, Converter={StaticResource NetworkStringConverter}}" TextBlock.FontSize="16" Padding="10" Margin="0 5 10 5">

MODIFY
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
WalletWasabi.Gui/Tabs/SettingsViewModel.cs
@@ -134,11 +134,11 @@ namespace WalletWasabi.Gui.Tabs
return base.OnClose();
}
- public IEnumerable<string> Networks => new[]
+ public IEnumerable<Network> Networks => new[]
{
- "Main",
- "TestNet",
- "RegTest"
+ Network.Main,
+ Network.TestNet,
+ Network.RegTest
};
public Network Network

Use Network types in the selection array, too.