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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 public string GetContentPageUri(PageEnum pageEnum, long filterId)
 {
     return(string.Format(@"/{0}/{1}", pageEnum.ToString(), filterId));
 }
Beispiel #5
0
 public string GetContentPageUri(PageEnum pageEnum)
 {
     return(@"/" + pageEnum.ToString());
 }