generate registration method.
MODIFY
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
WalletWasabi.Fluent.Generators/NavigationMetaDataGenerator.cs
@@ -118,6 +118,9 @@ namespace WalletWasabi.Fluent
string namespaceName = namedTypeSymbol.ContainingNamespace.ToDisplayString();
var source = new StringBuilder($@"
+using System;
+using System.Threading.Tasks;
+using WalletWasabi.Fluent.ViewModels.Navigation;
namespace {namespaceName}
{{
public partial class {namedTypeSymbol.Name}
@@ -141,6 +144,8 @@ namespace {namespaceName}
source.Append($@" }};
");
+ source.Append($@" public static void Register(Func<Task<RoutableViewModel>> createInstance) => NavigationManager.RegisterRoutable<{namedTypeSymbol.Name}>(MetaData, createInstance);");
+
source.Append($@" }}
}}");

MODIFY
WalletWasabi.Fluent/ViewModels/AboutViewModel.cs
WalletWasabi.Fluent/ViewModels/AboutViewModel.cs
@@ -28,11 +28,6 @@ namespace WalletWasabi.Fluent.ViewModels
[AutoNotify]
private bool _test;
- public static void Register(Func<Task<RoutableViewModel>> createInstance)
- {
- NavigationManager.RegisterRoutable<AboutViewModel>(MetaData, createInstance);
- }
-
public AboutViewModel()
{
OpenBrowserCommand = ReactiveCommand.CreateFromTask<string>(IoHelpers.OpenBrowserAsync);

generate registration method.