add new view, better naming
RENAME
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/PasswordFinderResultViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/PasswordFoundViewModel.cs
namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
{
- public partial class PasswordFinderResultViewModel : RoutableViewModel
+ public partial class PasswordFoundViewModel : RoutableViewModel
{
[AutoNotify] private string _password;
[AutoNotify] private bool _success;
- public PasswordFinderResultViewModel(string password)
+ public PasswordFoundViewModel(string password)
{
Title = "Password Finder";
_password = password;

MODIFY
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/PasswordFinder/SearchPasswordViewModel.cs
@@ -31,7 +31,7 @@ namespace WalletWasabi.Fluent.ViewModels.Login.PasswordFinder
{
if (PasswordFinderHelper.TryFind(options, out var foundPassword, SetStatus, cancelToken.Token))
{
- Navigate().To(new PasswordFinderResultViewModel(foundPassword));
+ Navigate().To(new PasswordFoundViewModel(foundPassword));
}
else
{

RENAME
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordFinderResultView.axaml
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordFoundView.axaml
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Login.PasswordFinder"
xmlns:c="using:WalletWasabi.Fluent.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:DataType="vm:PasswordFinderResultViewModel"
+ x:DataType="vm:PasswordFoundViewModel"
x:CompileBindings="True"
- x:Class="WalletWasabi.Fluent.Views.Login.PasswordFinder.PasswordFinderResultView">
+ x:Class="WalletWasabi.Fluent.Views.Login.PasswordFinder.PasswordFoundView">
<UserControl.Styles>
<Style Selector="TextBox.revealPasswordButton[AcceptsReturn=False]:not(TextBox:empty)">
<Setter Property="InnerRightContent">

RENAME
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordFinderResultView.axaml.cs
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordFoundView.axaml.cs
@@ -3,9 +3,9 @@ using Avalonia.Markup.Xaml;
namespace WalletWasabi.Fluent.Views.Login.PasswordFinder
{
- public class PasswordFinderResultView : UserControl
+ public class PasswordFoundView : UserControl
{
- public PasswordFinderResultView()
+ public PasswordFoundView()
{
InitializeComponent();
}

ADD
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordNotFoundView.axaml
+<UserControl xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Login.PasswordFinder"
+ xmlns:c="using:WalletWasabi.Fluent.Controls"
+ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
+ x:DataType="vm:PasswordNotFoundViewModel"
+ x:CompileBindings="True"
+ x:Class="WalletWasabi.Fluent.Views.Login.PasswordFinder.PasswordNotFoundView">
+ <c:ContentArea Title="{Binding Title}"
+ EnableNext="False"
+ EnableCancel="True"
+ EnableBack="True"
+ ScrollViewer.VerticalScrollBarVisibility="Disabled">
+
+ <c:QuestionControl Text="Does your password contains numbers?"
+ YesCommand="{Binding YesCommand}"
+ NoCommand="{Binding NoCommand}"
+ Icon="/Assets/PasswordFinder/numbers.png"
+ HighlightButton="Both"/>
+ </c:ContentArea>
+</UserControl>

ADD
WalletWasabi.Fluent/Views/Login/PasswordFinder/PasswordNotFoundView.axaml.cs
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace WalletWasabi.Fluent.Views.Login.PasswordFinder
+{
+ public class PasswordNotFoundView : UserControl
+ {
+ public PasswordNotFoundView()
+ {
+ InitializeComponent();
+ }
+
+ private void InitializeComponent()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+ }
+}

MODIFY
WalletWasabi.Fluent/WalletWasabi.Fluent.csproj
WalletWasabi.Fluent/WalletWasabi.Fluent.csproj
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>
+
+ <ItemGroup>
+ <Compile Update="Views\Login\PasswordFinder\PasswordNotFoundView.axaml.cs">
+ <DependentUpon>PasswordNotFoundView.axaml</DependentUpon>
+ <SubType>Code</SubType>
+ </Compile>
+ </ItemGroup>
</Project>

add new view, better naming