Inconsistent (and incorrect) error reporting in RegionManager.RequestNavigate
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.
Fix it?
I haven't had time to verify it yet, but go ahead and get your PR together to fix it.
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
Well that makes it easy :)
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.