private void AddTab(Type page, PageEnum pageEnum) { Tab tab = new Tab { Route = pageEnum.ToString(), Title = pageEnum.ToString() }; tab.Items.Add(new ShellContent { ContentTemplate = new DataTemplate(page) }); tabBar.Items.Add(tab); }
public ViewItem(int viewId, long filterId, int parentViewId, string viewName, string description, PageEnum contentPage) { this.ViweId = viewId; this.ParentViewId = parentViewId; this.ViewName = viewName; this.Description = description; this.ContentPageUri = string.Format("/{0}/{1}", contentPage.ToString(), filterId); ++ViewItem.Counter; }
public void Push(PageEnum page, params object[] parameters) { Shell.Current.GoToAsync(page.ToString()); Page lastPage = Shell.Current.Navigation.NavigationStack.LastOrDefault(); if (lastPage != null) { ((IBasePageViewModel)lastPage.BindingContext).OnPagePushing(parameters); } }
public string GetContentPageUri(PageEnum pageEnum, long filterId) { return(string.Format(@"/{0}/{1}", pageEnum.ToString(), filterId)); }
public string GetContentPageUri(PageEnum pageEnum) { return(@"/" + pageEnum.ToString()); }