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