Fixes navigation after app resume
This commit is contained in:
parent
6cee01512e
commit
5a070989e5
5 changed files with 8 additions and 8 deletions
|
|
@ -196,11 +196,11 @@ namespace BookAStar
|
|||
navPage.ToolbarItems.Add(tiSetts);
|
||||
*/
|
||||
this.MainPage = masterDetail;
|
||||
Resolver.Resolve<IDependencyContainer>()
|
||||
.Register<INavigationService>(t => new NavigationService(masterDetail.Detail.Navigation))
|
||||
;
|
||||
masterDetail.ToolbarItems.Add(tiHome);
|
||||
masterDetail.ToolbarItems.Add(tiSetts);
|
||||
NavigationService = new NavigationService(masterDetail.Detail.Navigation);
|
||||
}
|
||||
|
||||
public INavigationService NavigationService { protected set; get; }
|
||||
public void PostDeviceInfo()
|
||||
{
|
||||
var res = PlatformSpecificInstance.InvokeApi(
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace BookAStar.Pages
|
|||
private void OnViewDetail(object sender, ItemTappedEventArgs e)
|
||||
{
|
||||
BookQueryData data = e.Item as BookQueryData;
|
||||
Resolver.Resolve<INavigationService>().NavigateTo<BookQueryPage>(true,data);
|
||||
App.CurrentApp.NavigationService.NavigateTo<BookQueryPage>(true,data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ namespace BookAStar.Pages
|
|||
Id = 0,
|
||||
Description = "# **Hello Estimate!**"
|
||||
};
|
||||
Resolver.Resolve<INavigationService>().NavigateTo<EditEstimatePage>(true,
|
||||
App.CurrentApp.NavigationService.NavigateTo<EditEstimatePage>(true,
|
||||
new EstimateViewModel(e));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace BookAStar.Pages
|
|||
|
||||
private void ShowPage<T>(object [] args, bool animate=false) where T:Page
|
||||
{
|
||||
Resolver.Resolve<INavigationService>().NavigateTo<T>(animate, args);
|
||||
App.CurrentApp.NavigationService.NavigateTo<T>(animate, args);
|
||||
App.MasterPresented = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace BookAStar.Pages
|
|||
protected void OnNewCommanLine(object sender, EventArgs e)
|
||||
{
|
||||
var com = new BillingLine();
|
||||
Resolver.Resolve<INavigationService>().NavigateTo<EditBillingLinePage>(
|
||||
App.CurrentApp.NavigationService.NavigateTo<EditBillingLinePage>(
|
||||
true,
|
||||
new object[] { new BillingLineViewModel(((EstimateViewModel)this.BindingContext).Data,com) } );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue