Ejemplo n.º 1
0
        private async void NavigationFrame_Navigating(object sender, NavigatingCancelEventArgs navigationEventArgs)
        {
            if (navigationEventArgs.Parameter != null && NavigationViews != null)
            {
                _currentSample = NavigationViews.Where(a => a.Name == navigationEventArgs.Parameter).FirstOrDefault();
            }
            else
            {
                _currentSample = null;
            }

            await SetHamburgerMenuSelection();
        }
Ejemplo n.º 2
0
        private void NavigateToView(NavViewModel sample)
        {
            var pageType = sample.Name;

            if (pageType != null)
            {
                // InfoAreaPivot.Items.Clear();
                if (sample.PageView.Equals("BlueView"))
                {
                    NavigationFrame.Navigate(typeof(BlueView), sample.Name);
                }

                if (sample.PageView.Equals("RedView"))
                {
                    NavigationFrame.Navigate(typeof(RedView), sample.Name);
                }

                if (sample.PageView.Equals("OrangeView"))
                {
                    NavigationFrame.Navigate(typeof(OrangeView), sample.Name);
                }
            }
        }