public void NavigateTo(Uri pageUri)
 {
     if (EnsureMainFrame())
     {
         _mainFrame.Navigate(pageUri);
     }
 }
Exemplo n.º 2
0
        public void PushPresenter(object presenter)
        {
            App.Instance.CurrentPresenter = presenter;

            if (presenter is SearchResultsPresenter)
            {
                _navigationService.Navigate(new Uri("/SearchResultsView.xaml", UriKind.Relative));
            }
            else if (presenter is PropertyPresenter)
            {
                _navigationService.Navigate(new Uri("/PropertyView.xaml", UriKind.Relative));
            }
            else if (presenter is FavouritesPresenter)
            {
                _navigationService.Navigate(new Uri("/FavouritesView.xaml", UriKind.Relative));
            }
        }
Exemplo n.º 3
0
 public void NavigateToSearchPage()
 {
     _navigator.Navigate(new SearchPage());
 }
Exemplo n.º 4
0
 public void RequestLandingPage()
 {
     _mainWindowNavigationService.Navigate(new LandingPage(this));
 }
 /// <summary>
 /// Navigates to the content specified by the uniform resource identifier (URI).
 /// </summary>
 /// <param name="source">A <see cref="Uri"/> initialized with the URI for the desired content.</param>
 /// <returns>true if navigation is not canceled; otherwise, false.</returns>
 public bool Navigate(Uri source)
 {
     return(EnsureNavigationService() && _navigationService.Navigate(source));
 }
Exemplo n.º 6
0
 public void Navigate(string url)
 {
     _navigationService.Navigate(new Uri(url, UriKind.Relative));
 }