8.1.97
Prism 8.1
Prism 8.1 is largely a service pack release for Prism 8.0. If upgrading from Prism 7, it is recommended that you skip Prism 8.0 and instead use 8.1. Additionally Prism 8.1 offers a new Prism.Uno.WInUI platform target for those wishing to build either native WinUI3, or Cross Platform WinUI 3 apps with Uno Platform.
Bugs Fixed
- [Bug] Prism.Forms.Regions in xaml not working when content view in top child #2415
- [Enhancement] Apply AutowireViewModel automatically when using RegisterViewWithRegion #2236
- [Enhancement] Support FlyoutPage from Xamarin.Forms 5 #2239
- Make SetNavigationServiceForPage protected #2288
- Handle Android Hardware GoBack #2391
- [Enhancement] Added more MVVM Friendly APIs for registering Views with a Region (All Platforms)
- fix: [UWP][WinUI] Support for RegionManager.IsInDesignMode #2419
- Use the Target Element BindingContext instead of the Page VM #2404
- Fixing DI NavigationService resolution #2354 #2218
- Add support for WinUI 3 #2393
- Non-generic register for navigation with view-model #2257
- Update WPF to .NET 5 #2250
Prism.Forms
Additional updates have been done for Prism.Forms.Regions. This better aligns the API with the original WPF API.
Android GoBack
Note that for the new Android GoBack support for Prism.Forms you must update the OnBackPressed in the MainActivity. You may await the call to handle the result. This result could be generated from either a Dialog or Page Navigation result.
public override async void OnBackPressed()
{
var result = await PrismPlatform.OnBackPressed(this);
if (!result.Success)
{
System.Diagnostics.Debugger.Break();
if (result.Exception != null)
{
Console.WriteLine(result.Exception);
}
}
}