implement successfuly wallet generation screen.
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletSuccessView.xaml
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletSuccessView.xaml
<StackPanel Margin="10" Gap="10">
<TextBlock Text="Wallet Generated Successfully!" Background="Green" Foreground="{DynamicResource ApplicationAccentForegroundBrush}" />
<TextBlock Text="Write down these mnemonic words:" FontWeight="Bold" />
- <TextBlock Text="these are mnemonic words" Background="Gray" Foreground="{DynamicResource ApplicationAccentForegroundBrush}" />
+ <TextBox Text="{Binding MnemonicWords, Mode=TwoWay}" Background="Gray" Foreground="{DynamicResource ApplicationAccentForegroundBrush}" Classes="selectableTextBlock" />
<TextBlock Text="You can recover your wallet on any computer with:" FontWeight="Bold" />
<TextBlock Text="- the mnemonic words AND" FontWeight="Bold" />
- <TextBlock Text="- your password AND" FontWeight="Bold" />
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="- the wallet creation time:" FontWeight="Bold" />
- <TextBlock Text="{Binding CreationTime}" FontWeight="Bold" />
- </StackPanel>
+ <TextBlock Text="- your password" FontWeight="Bold" />
<TextBlock Text="Unlike most other wallets if an attacker aquires your mnemonic words, it will not be able to hack your wallet without knowing your password. On the contrary, unlike other wallets, you will not be able to recover your wallet only with the mnemonic words if you lose your password." TextWrapping="Wrap" />
</StackPanel>
</UserControl>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/GenerateWalletViewModel.cs
@@ -51,7 +51,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
{
KeyManager.CreateNew(out Mnemonic mnemonic, Password, walletFilePath);
- owner.SelectedCategory = new GenerateWalletSuccessViewModel();
+ owner.CurrentView = new GenerateWalletSuccessViewModel(mnemonic);
}
catch (Exception ex)
{

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerView.xaml
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerView.xaml
</ListBox>
</Grid>
<Grid>
- <cont:ViewModelViewHost DataContext="{Binding SelectedCategory}" Margin="4" />
+ <cont:ViewModelViewHost DataContext="{Binding CurrentView}" Margin="4" />
</Grid>
</DockPanel>
</Grid>

MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
@@ -10,6 +10,7 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
{
private ObservableCollection<CategoryViewModel> _categories;
private CategoryViewModel _selectedCategory;
+ private ViewModelBase _currentView;
public WalletManagerViewModel() : base("Wallet Manager")
{
@@ -25,6 +26,8 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
this.WhenAnyValue(x => x.SelectedCategory).Subscribe(category =>
{
category?.OnCategorySelected();
+
+ CurrentView = category;
});
}
@@ -39,5 +42,11 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
get { return _selectedCategory; }
set { this.RaiseAndSetIfChanged(ref _selectedCategory, value); }
}
+
+ public ViewModelBase CurrentView
+ {
+ get { return _currentView; }
+ set { this.RaiseAndSetIfChanged(ref _currentView, value); }
+ }
}
}

implement successfuly wallet generation screen.