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); }
private void OnPageNavigate() { if (Frame != null) { Frame.NavigateTo(StringPages[SelectedIndex].PageType); PageNavigate?.Invoke(this, new PageNavigateEventArgs(StringPages[SelectedIndex].PageType, null)); } }