Use an expander for the advanced options on recovery page.
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletView.xaml
xmlns:suggestions="clr-namespace:WalletWasabi.Gui.Suggestions;assembly=WalletWasabi.Gui"
x:Class="WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets.RecoverWalletView">
<StackPanel Margin="10" Spacing="10">
+ <StackPanel.Styles>
+ <Style Selector="Expander /template/ ToggleButton#PART_toggle /template/ Border">
+ <Setter Property="Background" Value="Transparent" />
+ </Style>
+ </StackPanel.Styles>
<controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30" Padding="30">
<Grid Classes="content">
<StackPanel Spacing="8">
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
- <StackPanel Spacing="16">
- <CheckBox IsChecked="{Binding ShowAdvancedOptions, Mode=TwoWay}">
- <TextBlock Text="Show Advanced Options" />
- </CheckBox>
- <StackPanel IsVisible="{Binding ShowAdvancedOptions}">
+ <Expander Header="Advanced" Background="Transparent">
+ <StackPanel Orientation="Horizontal" Spacing="16">
+ <StackPanel Spacing="6">
<controls:ExtendedTextBox Text="{Binding AccountKeyPath}" Watermark="Account Key Path" UseFloatingWatermark="True" />
<TextBlock Text="Wasabi can only monitor native SegWit (bech32) addresses." Classes="warningMessage" />
</StackPanel>
- <StackPanel IsVisible="{Binding ShowAdvancedOptions}">
- <controls:ExtendedTextBox Text="{Binding MinGapLimit}" Watermark="Minimum Gap Limit" UseFloatingWatermark="True" />
- </StackPanel>
+ <controls:ExtendedTextBox Text="{Binding MinGapLimit}" Watermark="Minimum Gap Limit" UseFloatingWatermark="True" VerticalAlignment="Top" />
</StackPanel>
+ </Expander>
</StackPanel>
</Grid>
</controls:GroupBox>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletViewModel.cs
@@ -27,7 +27,6 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets
private string _password;
private string _mnemonicWords;
private string _walletName;
- private bool _showAdvancedOptions;
private string _accountKeyPath;
private int _minGapLimit;
private ObservableCollection<SuggestionViewModel> _suggestions;
@@ -143,12 +142,6 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets
set => this.RaiseAndSetIfChanged(ref _caretIndex, value);
}
- public bool ShowAdvancedOptions
- {
- get => _showAdvancedOptions;
- set => this.RaiseAndSetIfChanged(ref _showAdvancedOptions, value);
- }
-
public string AccountKeyPath
{
get => _accountKeyPath;
@@ -174,7 +167,6 @@ namespace WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets
WalletName = WalletManager.WalletDirectories.GetNextWalletName();
- ShowAdvancedOptions = false;
AccountKeyPath = $"m/{KeyManager.DefaultAccountKeyPath}";
MinGapLimit = KeyManager.AbsoluteMinGapLimit * 3;
}

Use an expander for the advanced options on recovery page.