-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions/issue #1
Comments
Hi Leo I'd rather not add a dependency to the community toolkit, but I can see how it would be useful, so let me think about it for a bit. As for your bug report, I'll take a look at the weekend - I've never replaced the It would be helpful if you can tell me whether your Also, are you using a builder.Services
// The root page is supplied by the container!
// AdaptedTabbedPage Because https://github.com/dotnet/maui/issues/14572
.AddSingleton<MultiPage<Page>, AdaptedTabbedPage>()
.AddSingleton<ReadyPage>()
... |
@Keflon not a problem! There has been a discussion regarding page lifecycles made available via MVVM here dotnet/maui#120 but the only way I've seen this provided was via Prism or as a DIY. But we also wanted some sort of MVVM first navigation system and we don't use shell for the simple reason it does not support
I was not using the First time Resetting You can see there ends up becoming 10 children, I'm not sure if the original |
@Keflon forgot to update you they are registered as Singleton: ServiceCollectionServiceExtensions.AddSingleton<MultiPage<Page>, LandingTabbedPage>(serviceCollection);
serviceCollection.AddSingleton<CurrentPasswordPage, CurrentPasswordPageViewModel>();
serviceCollection.AddSingleton<UpdateCustomerNamePage, UpdateCustomerNamePageViewModel>(); |
Hi @LeoJHarris Thanks for the info. Unfortunately my day job took my weekend from me so I'll be looking at this next weekend. |
@Keflon Did you have any time to check this? |
@LeoJHarris Hi, happy holidays! |
@Keflon I did not encounter any crashing only the first child of the tabbed page showed a blank screen, tab selection stopped working and duplicate tab items were appearing. I'm not sure what the best solution is at this stage, I'm not familiar with any issues in MAUI affecting resetting the I've not tried this myself but wondering if its possible to reset the |
@LeoJHarris Thanks for the feedback, I'll take a look. I may not find time before the coming weekend; if it's a blocker for you let me know and I'll see if I can get to it sooner, but I can't make any promises. |
It's not a blocker. Actually, we are planning to drop prism, but we will continue using prism until we can find an alternative, I'd setup an experimental branch to try out your library and the only issue seems to be with resetting the nav. Unfortunately, Xamarin and now Maui don't seem to offer out of the box MVVM first navigation functionality. The closest thing, although not actually part of the MAUI framework itself, is the MAUI community pop-ups and how that handles pushing view models. |
Hi there,
First off great plugin, we have just replaced Prism Navigation with MVVM Zero, it was exactly what we were looking for as a replacement, just a few questions/issue to raise:
MvvmZeroBaseVm
extendObservableObject
, thus decorating properties with theObservableProperty
attribute. With this change we could better extendMvvmZeroBaseVm
, would you consider adding a dependancy toCommunityToolkit.Mvvm
?(MultiPage<Page>?)pageServiceZero.GetMultiPage
a second time such as resetting theMainPage
to aTabbedPage
again, the Children of the TabbedPage get messed up. Should calling this a second time simply reset theMainPage
?MainPage
is set to be deprecated from .NET 9 https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-9?view=net-maui-9.0#mainpageThe text was updated successfully, but these errors were encountered: