Prism icon indicating copy to clipboard operation
Prism copied to clipboard

Inconsistent (and incorrect) error reporting in RegionManager.RequestNavigate

Open dvorn opened this issue 10 years ago • 5 comments

Package info

  • Platform: WPF
  • Prism version: 5.x and 6.x
  • Other version info: not applicable to 4.x

Repro steps

Method RegionManager.RequestNavigate(string regionName, Uri source, Action<NavigationResult> navigationCallback) when region regionName does not exist invokes the callback with new NavigationResult(new NavigationContext(null, source), false) as a parameter.
(No navigation events are triggered because there is no navigation service on which to trigger an event.)

However, RegionManager.RequestNavigate(string regionName, Uri target, Action<NavigationResult> navigationCallback, NavigationParameters navigationParameters) when region regionName does not exist does nothing.

dvorn avatar Jun 23 '16 17:06 dvorn

Fix it?

dvorn avatar Jun 23 '16 19:06 dvorn

I haven't had time to verify it yet, but go ahead and get your PR together to fix it.

brianlagunas avatar Jun 23 '16 19:06 brianlagunas

Verification: https://github.com/PrismLibrary/Prism/blob/master/Source/Wpf/Prism.Wpf/Regions/RegionManager.cs#L379 cf. https://github.com/PrismLibrary/Prism/blob/master/Source/Wpf/Prism.Wpf/Regions/RegionManager.cs#L322

dvorn avatar Jun 23 '16 20:06 dvorn

Well that makes it easy :)

brianlagunas avatar Jun 23 '16 20:06 brianlagunas

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 31 '20 01:01 lock[bot]