Skip to content

NavigationService.Navigate(Type) method

Defined in

Type: NavigationService Namespace: CrissCross.WPF.UI Assembly: CrissCross.WPF.UI.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Overloads

  • 1. public bool Navigate(Type pageType)
  • 2. public bool Navigate(Type pageType, object? dataContext)
  • 3. public bool Navigate(string pageIdOrTargetTag)
  • 4. public bool Navigate(string pageIdOrTargetTag, object? dataContext)

1. Overload

public bool Navigate(Type pageType)

Inherited documentation

These docs were inherited from INavigationService. The member doesn't override them on this type.

Summary: Lets you navigate to the selected page based on it's type. Should be used with IPageService.

Parameters

NameTypeDescription
pageTypeTypeType of the page.

Returns: bool -- true if the operation succeeds. false otherwise.

2. Overload

public bool Navigate(Type pageType, object? dataContext)

Inherited documentation

These docs were inherited from INavigationService. The member doesn't override them on this type.

Summary: Lets you navigate to the selected page based on it's type, Should be used with IPageService.

Parameters

NameTypeDescription
pageTypeTypeType of the page.
dataContextobject?DataContext Object.

Returns: bool -- true if the operation succeeds. false otherwise.

3. Overload

public bool Navigate(string pageIdOrTargetTag)

Inherited documentation

These docs were inherited from INavigationService. The member doesn't override them on this type.

Summary: Lets you navigate to the selected page based on it's tag. Should be used with IPageService.

Parameters

NameTypeDescription
pageIdOrTargetTagstringId or tag of the page.

Returns: bool -- true if the operation succeeds. false otherwise.

4. Overload

public bool Navigate(string pageIdOrTargetTag, object? dataContext)

Inherited documentation

These docs were inherited from INavigationService. The member doesn't override them on this type.

Summary: Lets you navigate to the selected page based on it's tag. Should be used with IPageService.

Parameters

NameTypeDescription
pageIdOrTargetTagstringId or tag of the page.
dataContextobject?DataContext Object.

Returns: bool -- true if the operation succeeds. false otherwise.