Esempio n. 1
0
        private void OnItemClicked(NavPageItem npi)
        {
            ListViewItem lvi = ContainerFromItem(npi) as ListViewItem;
            if (lvi == null)
                return;
            int index = IndexFromContainer(lvi);
            try
            {
                foreach (NavPageItem i in Items)
                    i.IsSelected = (i == npi);
            }
            catch(Exception e)
            {
                e.CopeWith("Single Select");
            }
            PageSelected?.Invoke(this, npi);

            if(host != null)
                host.IsPaneOpen = false;

            lvi.Focus(FocusState.Programmatic);
        }
Esempio n. 2
0
 private void OnPageSelected(object sender, NavPageItem item)
 {
     frame.Navigate(item.PageType, null, new Windows.UI.Xaml.Media.Animation.SuppressNavigationTransitionInfo());
 }