Skip to content

Commit

Permalink
Merge pull request #1345 from DanielBHughes/master
Browse files Browse the repository at this point in the history
#1310 - Jumplist no longer works
  • Loading branch information
NPadrutt committed Mar 19, 2018
2 parents abd9124 + 6d5aaa1 commit 4964bda
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Src/MoneyFox.Windows/App.xaml.cs
Expand Up @@ -114,6 +114,20 @@ protected override async void OnLaunched(LaunchActivatedEventArgs e)

//OverrideTitleBarColor();

//When jumplist is selected navigate to appropriate tile
var tileHelper = Mvx.Resolve<TileHelper>();
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();
}
Expand Down
1 change: 1 addition & 0 deletions Src/MoneyFox.Windows/WindowsModule.cs
Expand Up @@ -33,6 +33,7 @@ protected override void Load(ContainerBuilder builder)
builder.RegisterType<WindowsAppInformation>().As<IAppInformation>();
builder.RegisterType<MarketplaceOperations>().As<IStoreOperations>();
builder.RegisterType<ConnectivityImplementation>().As<IConnectivity>();
builder.RegisterType<TileHelper>().AsSelf();
}
}
}

0 comments on commit 4964bda

Please sign in to comment.