public async Task GoToMyProfile(ProfilePersonStateEnum state, bool forceReload) { if (rootPage == null) { return; } await NavPage.PopToRootAsync(); rootPage.InitAsMyProfile(state, forceReload); this.UpdateNavigationMenuButtons(true); }
public async Task GoToEvents() { if (rootPage == null) { return; } await NavPage.PopToRootAsync(); rootPage.InitAsEvents(); this.UpdateNavigationMenuButtons(true); }
private void OnGoto(object sender, EventArgs args) { var vert = Trip.GetBusLocation(new StopTime(DateTime.Now)); if (vert != null) { Map.MoveToRegion(MapSpan.FromCenterAndRadius(vert.AsPosition(), MapUtil.DefaultMapRadius)); NavPage.PopToRootAsync(); } else { _issueLabel.Text = "Bus is not on map."; _issueLabel.TextColor = Color.FromHex("#ff0000"); } }
public async Task GoToCommunity() { if (rootPage == null) { return; } TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Starting"); await NavPage.PopToRootAsync(); TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Popped pages"); rootPage.InitAsCommunity(); TraceHelper.TraceInfoForResponsiveness("GoToCommunity - InitAsCommunity finished"); this.UpdateNavigationMenuButtons(true); TraceHelper.TraceInfoForResponsiveness("GoToCommunity - Done"); }
async void OnTappedMessage() { await NavPage.PopToRootAsync(); ph.ToolbarItem_RefrashClicked(null, null); }
public void PopToRoot() { NavPage.PopToRootAsync(); }