File tree Expand file tree Collapse file tree 12 files changed +11
-13
lines changed
Part 1 - Displaying Data/MonkeyFinder
Part 2 - MVVM/MonkeyFinder
Part 3 - Navigation/MonkeyFinder
Part 4 - Platform Features/MonkeyFinder
Part 5 - CollectionView/MonkeyFinder
Part 6 - AppThemes/MonkeyFinder Expand file tree Collapse file tree 12 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
28+
2929
3030 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3131 builder . Services . AddTransient < DetailsPage > ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
28+
2929
3030 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3131 builder . Services . AddTransient < DetailsPage > ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
28+
2929
3030 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3131 builder . Services . AddTransient < DetailsPage > ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
28+
2929
3030 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3131 builder . Services . AddTransient < DetailsPage > ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
28+
2929
3030 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3131 builder . Services . AddTransient < DetailsPage > ( ) ;
Original file line number Diff line number Diff line change @@ -25,11 +25,9 @@ public static MauiApp CreateMauiApp()
2525
2626 builder . Services . AddSingleton < MonkeyService > ( ) ;
2727 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
28- builder . Services . AddSingleton < MainPage > ( ) ;
2928
3029 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
3130 builder . Services . AddTransient < DetailsPage > ( ) ;
32-
3331 return builder . Build ( ) ;
3432 }
3533}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public static MauiApp CreateMauiApp()
1919 builder . Logging . AddDebug ( ) ;
2020#endif
2121
22- builder . Services . AddSingleton < MainPage > ( ) ;
22+
2323
2424 return builder . Build ( ) ;
2525 }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public static MauiApp CreateMauiApp()
1919 builder . Logging . AddDebug ( ) ;
2020#endif
2121
22- builder . Services . AddSingleton < MainPage > ( ) ;
22+
2323
2424 return builder . Build ( ) ;
2525 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static MauiApp CreateMauiApp()
2222
2323 builder . Services . AddSingleton < MonkeyService > ( ) ;
2424 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
25- builder . Services . AddSingleton < MainPage > ( ) ;
25+
2626
2727 return builder . Build ( ) ;
2828 }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public static MauiApp CreateMauiApp()
2222
2323 builder . Services . AddSingleton < MonkeyService > ( ) ;
2424 builder . Services . AddSingleton < MonkeysViewModel > ( ) ;
25- builder . Services . AddSingleton < MainPage > ( ) ;
25+
2626
2727 builder . Services . AddTransient < MonkeyDetailsViewModel > ( ) ;
2828 builder . Services . AddTransient < DetailsPage > ( ) ;
You can’t perform that action at this time.
0 commit comments