Add IDialogHost to navigation state
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -25,6 +25,7 @@ namespace WalletWasabi.Fluent.ViewModels
// TODO: Set default CancelView
_navigationState = new NavigationStateViewModel()
{
+ DialogHost = () => this,
Screen = () => this
};

MODIFY
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
WalletWasabi.Fluent/ViewModels/SettingsPageViewModel.cs
@@ -29,7 +29,7 @@ namespace WalletWasabi.Fluent.ViewModels
async interaction =>
{
var x = new TestDialogViewModel(navigationState, interaction.Input);
- var result = await x.ShowDialogAsync(MainViewModel.Instance);
+ var result = await x.ShowDialogAsync(navigationState.DialogHost());
interaction.SetOutput(result);
});

Add IDialogHost to navigation state