This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Download Microsoft Edge
More info about Internet Explorer and Microsoft Edge
public:
virtual bool Navigate(System::Object ^ content, System::Object ^ extraData);
public:
bool Navigate(System::Object ^ content, System::Object ^ extraData);
public bool Navigate (object content, object extraData);
abstract member Navigate : obj * obj -> bool
override this.Navigate : obj * obj -> bool
member this.Navigate : obj * obj -> bool
Public Function Navigate (content As Object, extraData As Object) As Boolean
Parameters
virtual bool Navigate(Uri ^ source, System::Object ^ extraData);
public:
bool Navigate(Uri ^ source, System::Object ^ extraData);
public bool Navigate (Uri source, object extraData);
abstract member Navigate : Uri * obj -> bool
override this.Navigate : Uri * obj -> bool
member this.Navigate : Uri * obj -> bool
Public Function Navigate (source As Uri, extraData As Object) As Boolean
Parameters
virtual bool Navigate(System::Object ^ content);
public:
bool Navigate(System::Object ^ content);
public bool Navigate (object content);
abstract member Navigate : obj -> bool
override this.Navigate : obj -> bool
member this.Navigate : obj -> bool
Public Function Navigate (content As Object) As Boolean
Parameters
Examples
The following example shows how to navigate to content that is contained by an object.
// Navigate to object using the Navigate method
this.Navigate(new HomePage());
' Navigate to object using the Navigate method
Me.Navigate(New HomePage())
Remarks
See
NavigationService.Navigate(Object)
.
bool Navigate(Uri ^ source);
public bool Navigate (Uri source);
abstract member Navigate : Uri -> bool
override this.Navigate : Uri -> bool
member this.Navigate : Uri -> bool
Public Function Navigate (source As Uri) As Boolean
Parameters
Examples
The following example shows how to use the
Navigate
method to navigate to a uniform resource identifier (URI).
// Navigate to URI using the Navigate method
this.Navigate(new Uri("HomePage.xaml", UriKind.Relative));
' Navigate to URI using the Navigate method
Me.Navigate(New Uri("HomePage.xaml", UriKind.Relative))
Remarks
See
NavigationService.Navigate(Uri)
.
Uniform resource identifiers (URIs) can be either relative or absolute. For more information, see
Pack URIs in WPF
.