Replies: 1 comment
-
Updated to .net7 and seems to be ok. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I created new prism-maui project from Prism.Template.
I added some page and navigate to it.
But problem is no navigation page header is visible and backButton closes app instead of back to mainPage.
What to check, because I have a bunch of errors trying to run Maui with Prism.
Current project targets .net6.0, but I saw samples targeting .net7.0, but I have no success with setup with .net7.0.
Or maybe @dansiegel could give some paid support?
`public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UsePrismApp(PrismStartup.Configure)
.UseMauiCommunityToolkit()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
`
PrismStartup.cs
`internal static class PrismStartup
{
public static void Configure(PrismAppBuilder builder)
{
builder.RegisterTypes(RegisterTypes)
.OnAppStart("NavigationPage/MainPage");
}
`
and MainPage.cs navigation to UserRegisterPage
`public async void OnNavigatedTo(INavigationParameters parameters)
{
if (parameters.GetNavigationMode() == Prism.Navigation.NavigationMode.New)
{
if (!AppPreferences.UserRegistered)
{
if (!_moduleManager.IsModuleInitialized("UserRegisterModule"))
_moduleManager.LoadModule("UserRegisterModule");
`
Beta Was this translation helpful? Give feedback.
All reactions