diff --git a/src/Wpf.Ui/NavigationService.cs b/src/Wpf.Ui/NavigationService.cs index 1f6dca3d4..8115fa2b0 100644 --- a/src/Wpf.Ui/NavigationService.cs +++ b/src/Wpf.Ui/NavigationService.cs @@ -128,7 +128,7 @@ public bool NavigateWithHierarchy(Type pageType, object? dataContext) return NavigationControl!.NavigateWithHierarchy(pageType, dataContext); } - private void ThrowIfNavigationControlIsNull() + protected void ThrowIfNavigationControlIsNull() { if (NavigationControl is null) { @@ -136,7 +136,7 @@ private void ThrowIfNavigationControlIsNull() } } - private void ThrowIfPageServiceIsNull() + protected void ThrowIfPageServiceIsNull() { if (_pageService is null) {