Added NavigateBack method to base class
MODIFY
WalletWasabi.Fluent/ViewModels/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/RoutableViewModel.cs
@@ -58,5 +58,20 @@ namespace WalletWasabi.Fluent.ViewModels
break;
}
}
+
+ public void NavigateBack()
+ {
+ switch (_navigationTarget)
+ {
+ case NavigationTarget.Default:
+ case NavigationTarget.Home:
+ _navigationState.HomeScreen?.Invoke().Router.NavigateBack.Execute();
+ break;
+
+ case NavigationTarget.Dialog:
+ _navigationState.DialogScreen?.Invoke().Router.NavigateBack.Execute();
+ break;
+ }
+ }
}
}
\ No newline at end of file

Added NavigateBack method to base class