편집

다음을 통해 공유


NavigationWindow.Navigate Method

Definition

Navigates asynchronously to the specified source content.

Overloads

Navigate(Object, Object)

Navigates asynchronously to content that is contained by an object, and passes an object that contains data to be used for processing during navigation.

Navigate(Uri, Object)

Navigates asynchronously to source content located at a uniform resource identifier (URI), and pass an object that contains data to be used for processing during navigation.

Navigate(Object)

Navigates asynchronously to content that is contained by an object.

Navigate(Uri)

Navigates asynchronously to content that is specified by a uniform resource identifier (URI).

Navigate(Object, Object)

Navigates asynchronously to content that is contained by an object, and passes an object that contains data to be used for processing during navigation.

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

content
Object

An Object that contains the content to navigate to.

extraData
Object

A Object that contains data to be used for processing during navigation.

Returns

true if a navigation is not canceled; otherwise, false.

Remarks

See NavigationService.Navigate(Object, Object).

See also

Applies to

Navigate(Uri, Object)

Navigates asynchronously to source content located at a uniform resource identifier (URI), and pass an object that contains data to be used for processing during navigation.

public:
 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

source
Uri

A Uri object initialized with the URI for the desired content.

extraData
Object

A Object that contains data to be used for processing during navigation.

Returns

true if a navigation is not canceled; otherwise, false.

Remarks

See NavigationService.Navigate(Uri, Object).

See also

Applies to

Navigate(Object)

Navigates asynchronously to content that is contained by an object.

public:
 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

content
Object

An Object that contains the content to navigate to.

Returns

true if a navigation is not canceled; otherwise, false.

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).

See also

Applies to

Navigate(Uri)

Navigates asynchronously to content that is specified by a uniform resource identifier (URI).

public:
 virtual bool Navigate(Uri ^ source);
public:
 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

source
Uri

A Uri object initialized with the URI for the desired content.

Returns

true if a navigation is not canceled; otherwise, false.

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).

Note

Uniform resource identifiers (URIs) can be either relative or absolute. For more information, see Pack URIs in WPF.

See also

Applies to