add scrolling to recover wallet page.
MODIFY
WalletWasabi.Gui/Styles/Styles.xaml
WalletWasabi.Gui/Styles/Styles.xaml
<FontFamily x:Key="MonospacedFont">avares://WalletWasabi.Gui/Assets#Cascadia Mono</FontFamily>
<converters:ErrorSeverityColorConverter x:Key="ErrorSeverityColorConverter" />
<converters:ErrorDescriptorToBorderColorConverter x:Key="ErrorDescriptorToBorderColorConverter" />
+
+ <Thickness x:Key="PageRootPadding">15 0 30 0</Thickness>
</Style.Resources>
</Style>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletView.xaml
WalletWasabi.Gui/Tabs/WalletManager/RecoverWallets/RecoverWalletView.xaml
xmlns:behaviors="clr-namespace:WalletWasabi.Gui.Behaviors;assembly=WalletWasabi.Gui"
xmlns:suggestions="clr-namespace:WalletWasabi.Gui.Suggestions;assembly=WalletWasabi.Gui"
x:Class="WalletWasabi.Gui.Tabs.WalletManager.RecoverWallets.RecoverWalletView">
- <StackPanel Margin="10" Spacing="10">
+ <ScrollViewer x:Name="Root" HorizontalScrollBarVisibility="Hidden">
+ <Border Width="{Binding #Root.Bounds.Width}" Padding="{StaticResource PageRootPadding}">
+ <StackPanel 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">
+ <controls:GroupBox Title="{Binding Title}" TextBlock.FontSize="30">
<Grid Classes="content">
<StackPanel Spacing="8">
<StackPanel>
<TextBlock Text="Heads Up!" FontWeight="Bold" />
- <TextBlock Text="At recovery, the wallet is unable to check if your password is correct or not. If you provide a wrong password, a wallet will be recovered with the provided Recovery Words and password combination." TextWrapping="Wrap" />
+ <TextBlock
+ Text="At recovery, the wallet is unable to check if your password is correct or not. If you provide a wrong password, a wallet will be recovered with the provided Recovery Words and password combination."
+ TextWrapping="Wrap" />
</StackPanel>
<controls:ExtendedTextBox Text="{Binding WalletName}" Watermark="Wallet Name" UseFloatingWatermark="True" />
<controls:TogglePasswordBox Text="{Binding Password}">
<behaviors:CommandOnEnterBehavior Command="{Binding RecoverCommand}" />
</i:Interaction.Behaviors>
</controls:TogglePasswordBox>
- <controls:ExtendedTextBox Text="{Binding MnemonicWords}" Watermark="Recovery Words" UseFloatingWatermark="True" CaretIndex="{Binding CaretIndex}">
+ <controls:ExtendedTextBox Text="{Binding MnemonicWords}" Watermark="Recovery Words"
+ UseFloatingWatermark="True" CaretIndex="{Binding CaretIndex}">
<i:Interaction.Behaviors>
<suggestions:SuggestionBehavior SuggestionItems="{Binding Suggestions}" />
</i:Interaction.Behaviors>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
- <Button Focusable="False" Content="{Binding Word}" Command="{Binding OnSelected}" IsPressed="{Binding IsHighLighted}" />
+ <Button Focusable="False" Content="{Binding Word}" Command="{Binding OnSelected}"
+ IsPressed="{Binding IsHighLighted}" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Expander Header="Advanced options" Background="Transparent" HorizontalContentAlignment="Stretch">
<DockPanel LastChildFill="True">
<StackPanel Orientation="Vertical" Spacing="8" DockPanel.Dock="Left">
- <controls:ExtendedTextBox Text="{Binding AccountKeyPath}" Watermark="Account Key Path" UseFloatingWatermark="True" MaxWidth="500" />
- <TextBlock Text="Wasabi can only monitor native SegWit (bech32) addresses." Classes="warningMessage" />
+ <controls:ExtendedTextBox Text="{Binding AccountKeyPath}" Watermark="Account Key Path"
+ UseFloatingWatermark="True" MaxWidth="500" />
+ <TextBlock Text="Wasabi can only monitor native SegWit (bech32) addresses."
+ Classes="warningMessage" />
</StackPanel>
- <controls:ExtendedTextBox Margin="16 0 0 0" Text="{Binding MinGapLimit}" Watermark="Minimum Gap Limit" UseFloatingWatermark="True" VerticalAlignment="Top" />
+ <controls:ExtendedTextBox Margin="16 0 0 0" Text="{Binding MinGapLimit}"
+ Watermark="Minimum Gap Limit" UseFloatingWatermark="True"
+ VerticalAlignment="Top" />
</DockPanel>
</Expander>
</StackPanel>
</controls:GroupBox>
<DockPanel LastChildFill="True">
<Button Content="Recover" Command="{Binding RecoverCommand}" DockPanel.Dock="Right" />
- <Grid></Grid>
+ <Grid />
</DockPanel>
</StackPanel>
+ </Border>
+ </ScrollViewer>
</UserControl>
\ No newline at end of file

add scrolling to recover wallet page.