Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 2c0bede

Browse files
authored
Merge pull request #103 from PrismLibrary/net6.0.400
6.0.400 update
2 parents 270f1cc + fbf7664 commit 2c0bede

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ MauiApp.CreateBuilder()
1919

2020
// Prism.Maui
2121
MauiApp.CreateBuilder()
22-
.UsePrismApp<App>(prism => {
22+
.UseMauiApp<App>()
23+
.UsePrism(prism => {
2324
// Register Services and setup initial Navigation
2425
});
2526
```
@@ -28,7 +29,8 @@ Some of the methods available on the `PrismAppBuilder` are going to seem a bit f
2829

2930
```cs
3031
MauiApp.CreateBuilder()
31-
.UsePrismApp<App>(prism =>
32+
.UseMauiApp<App>()
33+
.UsePrism(prism =>
3234
prism.RegisterServices(container => {
3335
container.Register<ISomeService, SomeImplementation>();
3436
container.RegisterForNavigation<ViewA, ViewAViewModel>();
@@ -46,7 +48,8 @@ You will find that this includes useful extensions that consider that you are wi
4648

4749
```cs
4850
MauiApp.CreateBuilder()
49-
.UsePrismApp<App>(prism =>
51+
.UseMauiApp<App>()
52+
.UsePrism(prism =>
5053
prism.OnInitialized(container => {
5154
var foo = container.Resolve<IFoo>();
5255
// Do some initializations here
@@ -58,7 +61,8 @@ The `PrismAppBuilder` additionally provides some new things to make your life ea
5861

5962
```cs
6063
MauiApp.CreateBuilder()
61-
.UsePrismApp<App>(prism =>
64+
.UseMauiApp<App>()
65+
.UsePrism(prism =>
6266
prism.OnAppStart(async navigationService =>
6367
{
6468
var result = await navigationService.NavigateAsync("MainPage/NavigationPage/ViewA");
@@ -76,7 +80,8 @@ To help make it even easier we have added some special extensions to the `PrismA
7680

7781
```cs
7882
MauiApp.CreateBuilder()
79-
.UsePrismApp<App>(prism =>
83+
.UseMauiApp<App>()
84+
.UsePrism(prism =>
8085
prism.ConfigureServices(services => {
8186
services.AddSingleton<IFoo, Foo>();
8287
services.RegisterForNavigation<ViewA, ViewAViewModel>();
@@ -122,6 +127,4 @@ navigationService.CreateBuilder()
122127
.Navigate();
123128
```
124129

125-
## NOTE
126130

127-
Prism.Maui is currently a Beta. Any preview build is largely meant to solicit additional developer feedback. APIs will likely change and break prior to being merged into the Prism repo and released as a fully official build.

global.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"sdk": {
3-
"version": "6.0.302",
4-
"rollForward": "latestPatch",
5-
"allowPrerelease": true
3+
"version": "6.0.400"
64
}
75
}

src/Prism.Maui/Navigation/PageNavigationService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,12 +1037,9 @@ protected virtual async Task DoPush(Page currentPage, Page page, bool? useModalN
10371037
}
10381038
else
10391039
{
1040-
#if !ANDROID
1040+
#if !ANDROID && !WINDOWS
10411041
// BUG: https://github.com/dotnet/maui/issues/7275
10421042
Window.Page = page;
1043-
#if WINDOWS
1044-
page.ForceLayout();
1045-
#endif
10461043
#else
10471044
// HACK: This is the only way CURRENTLY to ensure that the UI resets for Absolute Navigation
10481045
var newWindow = new PrismWindow

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "8.1-beta",
3+
"version": "8.1-pre",
44
"assemblyVersion": {
55
"precision": "revision"
66
},

0 commit comments

Comments
 (0)