Skip to content

INavigationService.Navigate(Type) method

Defined in

Type: INavigationService 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. bool Navigate(Type pageType)
  • 2. bool Navigate(Type pageType, object? dataContext)
  • 3. bool Navigate(string pageIdOrTargetTag)
  • 4. bool Navigate(string pageIdOrTargetTag, object? dataContext)

1. Overload

bool Navigate(Type pageType)

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

bool Navigate(Type pageType, object? dataContext)

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

bool Navigate(string pageIdOrTargetTag)

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

bool Navigate(string pageIdOrTargetTag, object? dataContext)

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.