layout bitcoin settings tab.
MODIFY
WalletWasabi.Fluent/Views/Settings/BitcoinSettingsView.xaml
WalletWasabi.Fluent/Views/Settings/BitcoinSettingsView.xaml
x:Class="WalletWasabi.Fluent.Views.Settings.BitCoinSettingsView">
<StackPanel Spacing="20" MinWidth="360" MaxWidth="650" HorizontalAlignment="Left" Orientation="Vertical">
<StackPanel.Styles>
- <Style Selector="Slider">
- <Setter Property="IsSnapToTickEnabled" Value="True" />
- <Setter Property="TickFrequency" Value="1" />
+ <Style Selector="DockPanel > TextBlock">
+ <Setter Property="Margin" Value="0 8 20 0" />
+ <Setter Property="VerticalAlignment" Value="Top" />
+ <Setter Property="(DockPanel.Dock)" Value="Left" />
+ </Style>
+ <Style Selector="DockPanel > ToggleSwitch">
+ <Setter Property="HorizontalAlignment" Value="Right" />
</Style>
</StackPanel.Styles>
- <StackPanel Orientation="Vertical" Spacing="5">
- <StackPanel Margin="0 10" Spacing="5">
+ <StackPanel Spacing="10">
<TextBlock Text="Network" />
- <ComboBox Items="{Binding Networks}" SelectedItem="{Binding Network}">
+ <ComboBox HorizontalAlignment="Stretch"
+ Items="{Binding Networks}"
+ SelectedItem="{Binding Network}">
<!--<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Converter={StaticResource NetworkStringConverter}}" />
</ComboBox.ItemTemplate>-->
</ComboBox>
</StackPanel>
- <Panel>
- <StackPanel Orientation="Vertical" Spacing="5">
- <TextBlock Classes="warningMessage" Text= "Work in progress..." />
- <TextBlock Text="Use your own Bitcoin Core or Wasabi's built-in Bitcoin Knots." />
- <TextBlock Text="Expect high CPU, network usage and 300+ GB disk space requirement." />
- <StackPanel Margin="0 10" Orientation="Horizontal" Spacing="5">
- <ToggleSwitch IsChecked="{Binding StartLocalBitcoinCoreOnStartup}" Margin="0 0 10 0" />
- <TextBlock VerticalAlignment="Center" Text= "Run Bitcoin Knots at Wasabi's startup." />
- </StackPanel>
- <StackPanel Margin="0 10" Spacing="5" IsVisible="{Binding StartLocalBitcoinCoreOnStartup}">
- <TextBlock Text="Bitcoin Core or Bitcoin Knots Data Folder" />
+
+ <DockPanel>
+ <TextBlock VerticalAlignment="Center" Text= "Run Bitcoin Knots on startup" />
+ <ToggleSwitch IsChecked="{Binding StartLocalBitcoinCoreOnStartup}" />
+ </DockPanel>
+
+ <StackPanel Spacing="10" IsVisible="{Binding StartLocalBitcoinCoreOnStartup}">
+ <TextBlock Text="Bitcoin Core/Knots Data Folder" />
<TextBox Text="{Binding LocalBitcoinCoreDataDir}" />
</StackPanel>
- <StackPanel Margin="0 10" Orientation="Horizontal" Spacing="5" IsVisible="{Binding StartLocalBitcoinCoreOnStartup}">
- <ToggleSwitch IsChecked="{Binding StopLocalBitcoinCoreOnShutdown}" Margin="0 0 10 0" />
- <TextBlock VerticalAlignment="Center" Text= "Stop Bitcoin Knots when Wasabi is shut down." />
- </StackPanel>
- </StackPanel>
- </Panel>
- <Panel IsVisible="{Binding !StartLocalBitcoinCoreOnStartup}">
- <StackPanel Orientation="Vertical" Spacing="5">
- <TextBlock Text="Set Wasabi to download blocks from a full node you control." />
- <StackPanel Margin="0 10" Spacing="5">
+
+ <DockPanel IsVisible="{Binding StartLocalBitcoinCoreOnStartup}">
+ <TextBlock Text= "Stop Bitcoin Knots on shutdown" />
+ <ToggleSwitch IsChecked="{Binding StopLocalBitcoinCoreOnShutdown}" />
+ </DockPanel>
+
+ <DockPanel IsVisible="{Binding !StartLocalBitcoinCoreOnStartup}"
+ ToolTip.Tip="Wasabi will download blocks from a full node you control.">
<TextBlock Text="Bitcoin P2P Endpoint" />
<TextBox Text="{Binding BitcoinP2pEndPoint}" />
- </StackPanel>
- </StackPanel>
- </Panel>
- </StackPanel>
+ </DockPanel>
</StackPanel>
</UserControl>
\ No newline at end of file

layout bitcoin settings tab.