Ejemplo n.º 1
0
 public MainTabbedPage(IPageFactory pageFactory)
 {
     Children.Add(pageFactory.MakePage <NewsFeedPage>());
     Children.Add(pageFactory.MakePage <CalendarPage>());
     Children.Add(pageFactory.MakePage <ToolsPage>());
     Children.Add(pageFactory.MakePage <ProfilePage>());
     InitializeComponent();
 }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public async Task <T> GoToPage <T>() where T : Page
        {
            var page = _pageFactory.MakePage <T>();

            await GoToPage(page);

            return(page);
        }