Skip to content
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

how to do T pageModel = FreshIOC.Container.Resolve<T>() in MAUI #15

Open
SarthakB26 opened this issue Oct 10, 2023 · 1 comment
Open

Comments

@SarthakB26
Copy link

SarthakB26 commented Oct 10, 2023

Hi I was using T pageModel = FreshIOC.Container.Resolve() for custom popupservice in xamarin app but while migrating FreshIOC is no longer available in MAUI version

Some sample line from my Xamarin code
T pageModel = FreshIOC.Container.Resolve();
TPopupPage page = FreshIOC.Container.Resolve();
FreshBasePageModel? pageModel = FreshIOC.Container.Resolve(pageModelType) as FreshBasePageModel;

Is anybody know how to do the same in In FressMvvm.Maui version

@SarthakB26
Copy link
Author

I see FreshIOC is still available in MAUI version https://github.com/XAM-Consulting/FreshMvvm.Maui/blob/main/src/FreshIOC/FreshTinyIOC.cs

But I am not able to access it though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant