Compartir a través de


Cómo: Navegar hasta una página

Actualización: noviembre 2007

En este ejemplo se muestran varias maneras de navegar hasta una página desde un objeto NavigationWindow.

Ejemplo

Es posible navegar desde NavigationWindow a una página mediante uno de los elementos siguientes:

// Navigate to URI using the Source property
this.Source = new Uri("HomePage.xaml", UriKind.Relative);

// Navigate to URI using the Navigate method
this.Navigate(new Uri("HomePage.xaml", UriKind.Relative));

// Navigate to object using the Navigate method
this.Navigate(new HomePage());

Nota

Los Identificadores de recursos uniformes (URIs) pueden ser relativos o absolutos. Para obtener más información, consulte URIs de paquete en Windows Presentation Foundation.

Vea también

Referencia

Frame

Page

NavigationService