Skip to content

Commit b27d4ac

Browse files
committed
chore: change nav sample initialization to align the standard init
1 parent ca65145 commit b27d4ac

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

UI/Navigation/src/Navigation/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static void RegisterRoutes(IViewRegistry views, IRouteRegistry routes)
107107
new RouteMap("", View: views.FindByViewModel<ShellViewModel>(),
108108
Nested:
109109
[
110-
new ("Main", View: views.FindByViewModel<MainViewModel>(),
110+
new ("Main", View: views.FindByViewModel<MainViewModel>(), IsDefault: true,
111111
Nested:
112112
[
113113
#region Page Navigation

UI/Navigation/src/Navigation/Presentation/ShellViewModel.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,5 @@ public ShellViewModel(
88
INavigator navigator)
99
{
1010
_navigator = navigator;
11-
_ = Start();
12-
}
13-
14-
public async Task Start()
15-
{
16-
await _navigator.NavigateViewModelAsync<MainViewModel>(this);
1711
}
1812
}

0 commit comments

Comments
 (0)