diff --git a/Src/MoneyFox.Windows/App.xaml.cs b/Src/MoneyFox.Windows/App.xaml.cs index b0529bb5fd..508f4fbcff 100644 --- a/Src/MoneyFox.Windows/App.xaml.cs +++ b/Src/MoneyFox.Windows/App.xaml.cs @@ -114,6 +114,20 @@ protected override async void OnLaunched(LaunchActivatedEventArgs e) //OverrideTitleBarColor(); + //When jumplist is selected navigate to appropriate tile + var tileHelper = Mvx.Resolve(); + if (e.Arguments == Constants.ADD_INCOME_TILE_ID) + { + await tileHelper.DoNavigation(Constants.ADD_INCOME_TILE_ID); + } + else if (e.Arguments == Constants.ADD_EXPENSE_TILE_ID) + { + await tileHelper.DoNavigation(Constants.ADD_EXPENSE_TILE_ID); + } + else if (e.Arguments == Constants.ADD_TRANSFER_TILE_ID) + { + await tileHelper.DoNavigation(Constants.ADD_TRANSFER_TILE_ID); + } // Ensure the current window is active Window.Current.Activate(); } diff --git a/Src/MoneyFox.Windows/WindowsModule.cs b/Src/MoneyFox.Windows/WindowsModule.cs index aebc4f1e3f..05ad50cc4a 100644 --- a/Src/MoneyFox.Windows/WindowsModule.cs +++ b/Src/MoneyFox.Windows/WindowsModule.cs @@ -33,6 +33,7 @@ protected override void Load(ContainerBuilder builder) builder.RegisterType().As(); builder.RegisterType().As(); builder.RegisterType().As(); + builder.RegisterType().AsSelf(); } } }