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

Commit

Permalink
Merge pull request #103 from PrismLibrary/net6.0.400
Browse files Browse the repository at this point in the history
6.0.400 update
  • Loading branch information
dansiegel authored Aug 14, 2022
2 parents 270f1cc + fbf7664 commit 2c0bede
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ MauiApp.CreateBuilder()

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

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

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

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

```cs
MauiApp.CreateBuilder()
.UsePrismApp<App>(prism =>
.UseMauiApp<App>()
.UsePrism(prism =>
prism.ConfigureServices(services => {
services.AddSingleton<IFoo, Foo>();
services.RegisterForNavigation<ViewA, ViewAViewModel>();
Expand Down Expand Up @@ -122,6 +127,4 @@ navigationService.CreateBuilder()
.Navigate();
```

## NOTE

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.
4 changes: 1 addition & 3 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"sdk": {
"version": "6.0.302",
"rollForward": "latestPatch",
"allowPrerelease": true
"version": "6.0.400"
}
}
5 changes: 1 addition & 4 deletions src/Prism.Maui/Navigation/PageNavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,9 @@ protected virtual async Task DoPush(Page currentPage, Page page, bool? useModalN
}
else
{
#if !ANDROID
#if !ANDROID && !WINDOWS
// BUG: https://github.com/dotnet/maui/issues/7275
Window.Page = page;
#if WINDOWS
page.ForceLayout();
#endif
#else
// HACK: This is the only way CURRENTLY to ensure that the UI resets for Absolute Navigation
var newWindow = new PrismWindow
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "8.1-beta",
"version": "8.1-pre",
"assemblyVersion": {
"precision": "revision"
},
Expand Down

0 comments on commit 2c0bede

Please sign in to comment.