add mini dialog to MainViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -28,6 +28,7 @@ namespace WalletWasabi.Fluent.ViewModels
[AutoNotify] private bool _isFullScreenEnabled;
[AutoNotify] private DialogScreenViewModel _dialogScreen;
[AutoNotify] private DialogScreenViewModel _fullScreen;
+ [AutoNotify] private DialogScreenViewModel _miniDialogScreen;
[AutoNotify] private NavBarViewModel _navBar;
[AutoNotify] private StatusBarViewModel _statusBar;
[AutoNotify] private string _title = "Wasabi Wallet";
@@ -46,9 +47,11 @@ namespace WalletWasabi.Fluent.ViewModels
_fullScreen = new DialogScreenViewModel(double.PositiveInfinity, double.PositiveInfinity, NavigationTarget.FullScreen);
+ _miniDialogScreen = new DialogScreenViewModel(480, 270, NavigationTarget.MiniDialogScreen);
+
MainScreen = new TargettedNavigationStack(NavigationTarget.HomeScreen);
- NavigationState.Register(MainScreen, DialogScreen, FullScreen);
+ NavigationState.Register(MainScreen, DialogScreen, FullScreen, MiniDialogScreen);
Network = global.Network;

MODIFY
WalletWasabi.Fluent/Views/MainView.axaml
WalletWasabi.Fluent/Views/MainView.axaml
</c:Dialog.Styles>
<ContentControl Content="{Binding CurrentPage}" />
</c:Dialog>
+ <c:Dialog x:CompileBindings="False"
+ DataContext="{Binding MiniDialogScreen}"
+ IsDialogOpen="{Binding IsDialogOpen, Mode=TwoWay}"
+ EnableCancelOnPressed="False"
+ EnableCancelOnEscape="True"
+ IsEnabled="{Binding $parent.DataContext.IsDialogScreenEnabled}"
+ HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
+ MaxContentWidth="{Binding MaxContentWidth}" MaxContentHeight="{Binding MaxContentHeight}">
+ <ContentControl Content="{Binding CurrentPage}" />
+ </c:Dialog>
</Panel>
</UserControl>

add mini dialog to MainViewModel