open action center and add wallet in fullscreen
MODIFY
WalletWasabi.Fluent/ViewModels/Login/FullScreenLoginViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/FullScreenLoginViewModel.cs
@@ -3,6 +3,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
+using System.Windows.Input;
using ReactiveUI;
using WalletWasabi.Fluent.ViewModels.AddWallet;
using WalletWasabi.Fluent.ViewModels.NavBar;
@@ -26,12 +27,23 @@ namespace WalletWasabi.Fluent.ViewModels.Login
Wallets = wallets;
ActionCenter = actionCenter;
AddWallet = addWallet;
+
+ NavigateToCommand = ReactiveCommand.Create<NavBarItemViewModel>(NavigateToExecute);
}
+ public ICommand NavigateToCommand { get; }
+
public ObservableCollection<WalletViewModelBase> Wallets { get; }
+
public SearchPageViewModel ActionCenter { get; }
+
public AddWalletPageViewModel AddWallet { get; }
+ private void NavigateToExecute(NavBarItemViewModel item)
+ {
+ Navigate().To(item);
+ }
+
protected override void OnNavigatedTo(bool inStack, CompositeDisposable disposable)
{
base.OnNavigatedTo(inStack, disposable);

MODIFY
WalletWasabi.Fluent/Views/Login/FullScreenLoginView.axaml
WalletWasabi.Fluent/Views/Login/FullScreenLoginView.axaml
HorizontalAlignment="Left"
VerticalAlignment="Bottom">
<StackPanel.Styles>
- <Style Selector="Button.bottom"
+ <Style Selector="PathIcon"
x:DataType="navBar:NavBarItemViewModel">
- <Setter Property="Command" Value="{Binding OpenCommand}"/>
+ <Setter Property="ToolTip.Tip" Value="{Binding Title}"/>
+ <Setter Property="Width" Value="25"/>
+ <Setter Property="Height" Value="25"/>
+ <Setter Property="Data" Value="{Binding IconName, Converter={x:Static conv:NavBarIconConverter.Instance}}"/>
+ </Style>
+
+ <Style Selector="Button.bottom">
+ <Setter Property="Command" Value="{Binding NavigateToCommand}"/>
<Setter Property="Padding" Value="10"/>
- <Setter Property="Content">
- <Setter.Value>
- <Template>
- <PathIcon Data="{Binding IconName, Converter={x:Static conv:NavBarIconConverter.Instance}}"
- ToolTip.Tip="{Binding Title}"
- Width="25"
- Height="25"/>
- </Template>
- </Setter.Value>
- </Setter>
</Style>
</StackPanel.Styles>
- <Button DataContext="{Binding ActionCenter}" Classes="invisible bottom"/>
- <Button DataContext="{Binding AddWallet}" Classes="invisible bottom"/>
+ <Button Classes="invisible bottom" CommandParameter="{Binding ActionCenter}">
+ <PathIcon DataContext="{Binding ActionCenter}"/>
+ </Button>
+
+ <Button Classes="invisible bottom" CommandParameter="{Binding AddWallet}">
+ <PathIcon DataContext="{Binding AddWallet}"/>
+ </Button>
</StackPanel>
</Panel>
</c:ContentArea>

open action center and add wallet in fullscreen