Add NavBarViewModel to MainViewModel.
MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -13,6 +13,7 @@ namespace WalletWasabi.Fluent.ViewModels
private Global _global;
private StatusBarViewModel _statusBar;
private string _title = "Wasabi Wallet";
+ private NavBarViewModel _navBar;
public MainViewModel(Global global)
{
@@ -22,6 +23,8 @@ namespace WalletWasabi.Fluent.ViewModels
StatusBar = new StatusBarViewModel(global.DataDir, global.Network, global.Config, global.HostedServices, global.BitcoinStore.SmartHeaderChain, global.Synchronizer, global.LegalDocuments);
+ NavBar = new NavBarViewModel(global.WalletManager, global.UiConfig);
+
Dispatcher.UIThread.Post(async () =>
{
await Task.Delay(5000);
@@ -40,6 +43,12 @@ namespace WalletWasabi.Fluent.ViewModels
public Network Network { get; }
+ public NavBarViewModel NavBar
+ {
+ get { return _navBar; }
+ set { this.RaiseAndSetIfChanged(ref _navBar, value); }
+ }
+
public StatusBarViewModel StatusBar
{
get { return _statusBar; }

Add NavBarViewModel to MainViewModel.