public async Task PushPage(string pageTitle)
        {
            GalleryPageFactory pageFactory = null;

            if (!_titleToPage.TryGetValue(pageTitle, out pageFactory))
            {
                return;
            }

            var page = pageFactory.Realize();

            await PushPage(page);
        }
Beispiel #2
0
        public async Task PushPage(string pageTitle)
        {
            GalleryPageFactory pageFactory = null;

            if (!_titleToPage.TryGetValue(pageTitle, out pageFactory))
            {
                return;
            }

            var page = pageFactory.Realize();

            if (Insights.IsInitialized)
            {
                Insights.Track("Navigation", new Dictionary <string, string> {
                    { "Pushing", page.GetType().Name }
                });
            }

            await PushPage(page);
        }