Пример #1
0
        public void NavigateTo(EPageType pageType, Object data = null)
        {
            Page page = CPagesStore.Instance.GetPageByType(pageType);

            ViewModelInitialize(page, data);
            _navigationItems.Push(new CNavigationHistoryItem(pageType, data));
            PageNavigate?.Invoke(this, page);
        }
Пример #2
0
 private void OnPageNavigate()
 {
     if (Frame != null)
     {
         Frame.NavigateTo(StringPages[SelectedIndex].PageType);
         PageNavigate?.Invoke(this, new PageNavigateEventArgs(StringPages[SelectedIndex].PageType, null));
     }
 }