Get():Returns the platform-specific implementation Resolve():The method to use to resolve dependencies by type. Source: forums.xamarin.com/discussion/157688/what-is-the-difference-between-get-and-resolve-in-xamarin-forms-dependencyservice
Thank you Gerald for this great video, can you do a video on MvvmCross in Xamarin Forms? also do you prefer using Mvvm Frameworks in Xamarin forms? I heard some people say using them in Xamarin is not recommended.
Do you have any sources on those people not recommending it? I would be curious to read about it! I do use it, I have almost always exclusively used FreshMvvm, do you know about that one?
@@jfversluis Actually I saw it in the answers of StackOverflow that unfortunately, I can't seem to find at the moment as it was several days ago, Yes I heard of FreshMvvm but never gave it a chance as it designed especially for xamarin forms rather than cross-platform, cause I coming from developing desktop apps and I used MvvmLight and MvvmCross only.
Ah gotcha! Yeah that’s true, it’s specifically for Forms. That’s what I like about it. Other frameworks are definitely good, but not designed with Forms in mind. I’ll have a look at some other frameworks and make videos!
@@jfversluis There might be a time when we want only one business logic project and we just want to swap the UI projects, that is what I've done in my projects and now I want to build mobile apps with these logic projects without the need of changing code which is what cross-platform frameworks shine, thanks for your all your efforts once again it would be good if you do a project using MvvmCross, thanks again.
Hello again, One question. Can I use the Xamarin.Forms DependencyService for Dependendy Injection? Just like you explained in your video "Dependency Injection for Absolute Beginners with C# and .NET"? Kind regards
Thanks for the tutorial which has been a great help. Now I need to try and apply that to my StackOverflow question here stackoverflow.com/q/66295413/2287576 concerning saving the window position on macOS. In the comments the following was suggested: "Forms itself won't do it, but you should be able to use the Mac API from a custom renderer or dependency service to do it".
It turned out that I was able to handle this issue without a DependencyService. All I needed to do was modify my AppDelegate. I added an answer to my SO question. A tutorial that would be appreciated, if not already covered, it how to write a RestorationClass for a single window macOS app so that when you also use the Restorable property it will re-display the window again.
@@jfversluis Maybe! At the moment I have just got my head around Codesigning the macOS release build, and notarizing the package. Now I am working on localization into Italian (via a friend). It is a pity the RESX file has to be manually edited. But it works! Hopefully I have work out the RestorationClass with time.
Get():Returns the platform-specific implementation
Resolve():The method to use to resolve dependencies by type.
Source:
forums.xamarin.com/discussion/157688/what-is-the-difference-between-get-and-resolve-in-xamarin-forms-dependencyservice
Awesome Samir! Thank you! Will pin this to the video so now everyone can learn
@@jfversluis Thank you for pinning this.
You are the only hope in Xamarin youtube world...
Need... more... Instruction.... Samples... References....
Haha thank you! Trying my best! But why is there only 24 hours in a day?!
@@jfversluis Cheers from korea
Also be sure to check out David Ortinau’s channel with 60 second tutorials! th-cam.com/play/PLrkKvY7K4dLWNQQlJAlf6CgVt5hDtU4Xb.html
Thanks man this is great vid. This question being asked to me in job interview.
Oh really?! And did you get it right? At least now you will ;)
IVE BEEN LOOKING FOR THIS VIDEO FOR HOURS THANK YOU
IT WAS RIGHT HERE! Glad you found it useful!
Thank you Gerald you always make life easier
That's the idea! Thank you :D
When I forget something or need a better understanding here I have a better explanation video on your channel! Thanks for saving many hours
Happy to help!
delightful as always sir Gerald
Thanks! 😄
Thank you for this non-stop teaching video, I will try to follow your step~~,
Please do! And it's totally my pleasure, so much fun. Thank you for following me!
Thank you very much, its much easier to understand if your explain with words and code
Thank you! So, just to be clear: this video was helpful? Or would you like to see something different? :)
It was helpful. I like how you explain and show the topics
@@4Asteria wonderful! Thank you for letting me know :)
Thanks Gerald.
Thank you for watching!
Great info as always , love the structure you put in your videos , makes it very easy to follow )
Thanks so much Jonas!
Great Sir....This was headache for me thanks sir
Glad I could relieve you from that! 😄
lol same.
Please do a video on using Autofac dependency injection with Xamarin Forms. And possibly on 3rd party MVVM frameworks like Prism.
Those are on the list, thank you!
Thank you from 🇿🇼
I love having viewers from far places! You're very welcome from 🇳🇱
Thank's for video it's great :)
Thank you Kacper!
@@jfversluis can you create video about databases with xamarin forms? E.g SQLite
Thank you Gerald for this great video, can you do a video on MvvmCross in Xamarin Forms? also do you prefer using Mvvm Frameworks in Xamarin forms? I heard some people say using them in Xamarin is not recommended.
Do you have any sources on those people not recommending it? I would be curious to read about it! I do use it, I have almost always exclusively used FreshMvvm, do you know about that one?
@@jfversluis Actually I saw it in the answers of StackOverflow that unfortunately, I can't seem to find at the moment as it was several days ago, Yes I heard of FreshMvvm but never gave it a chance as it designed especially for xamarin forms rather than cross-platform, cause I coming from developing desktop apps and I used MvvmLight and MvvmCross only.
Ah gotcha! Yeah that’s true, it’s specifically for Forms. That’s what I like about it. Other frameworks are definitely good, but not designed with Forms in mind. I’ll have a look at some other frameworks and make videos!
@@jfversluis There might be a time when we want only one business logic project and we just want to swap the UI projects, that is what I've done in my projects and now I want to build mobile apps with these logic projects without the need of changing code which is what cross-platform frameworks shine, thanks for your all your efforts once again it would be good if you do a project using MvvmCross, thanks again.
Gerald, when to use Dependency service and Messaging Center? Both of them are used to invoke platform code.
Very interesting question! Do you mind waiting for the answer a little so I make a video about it? 😄
@@jfversluis That would be better. I will wait.
Hello again,
One question.
Can I use the Xamarin.Forms DependencyService for Dependendy Injection?
Just like you explained in your video "Dependency Injection for Absolute Beginners with C# and .NET"?
Kind regards
It doesn't support that right now, no :( in .NET MAUI they move to the built-in Dependency Injection which does have that!
How ti inject services into viewmodels from a root place ???
You probably want to use some kind of framework for that like AutoFac :)
Thanks for the tutorial which has been a great help. Now I need to try and apply that to my StackOverflow question here stackoverflow.com/q/66295413/2287576 concerning saving the window position on macOS. In the comments the following was suggested: "Forms itself won't do it, but you should be able to use the Mac API from a custom renderer or dependency service to do it".
It turned out that I was able to handle this issue without a DependencyService. All I needed to do was modify my AppDelegate. I added an answer to my SO question.
A tutorial that would be appreciated, if not already covered, it how to write a RestorationClass for a single window macOS app so that when you also use the Restorable property it will re-display the window again.
I have no experience with that whatsoever! So maybe you make a tutorial about it this time :P
@@jfversluis Maybe! At the moment I have just got my head around Codesigning the macOS release build, and notarizing the package. Now I am working on localization into Italian (via a friend). It is a pity the RESX file has to be manually edited. But it works! Hopefully I have work out the RestorationClass with time.