Dependency Injection & IoC containers with Xamarin Forms

  Рет қаралды 15,788

Houssem Dellai

Houssem Dellai

Күн бұрын

Пікірлер: 15
@brayankhosravian5644
@brayankhosravian5644 5 жыл бұрын
instead of passing the platform specific implementation to the App ctor, its possible to pass it with a method. that way designer service is still enabled
@bhundalinfotech
@bhundalinfotech 3 жыл бұрын
Its really helpful, thanks for sharing it.
@rahultripathikanpur
@rahultripathikanpur 6 жыл бұрын
I m getting error "Activation error occurred while trying to get instance of type MainViewModel, key " when using BindingContext = ServiceLocator.Current.GetInstance(typeof(MainViewModel)); (code behind)
@CookieMonsteeerrr
@CookieMonsteeerrr 5 жыл бұрын
don't you think service locator is anti pattern? every time i read on stackoverflow mostly people say to not use it.
@TheTiapom
@TheTiapom 6 жыл бұрын
When I use Unity in my projects and with LinkAll, the ServiceLocator has a exception, and in my linker.xml , I dont know I to solve that
@arrajeshabi
@arrajeshabi 7 жыл бұрын
this is really good video, but how about passing parameter to constructor
@HoussemDellai
@HoussemDellai 7 жыл бұрын
Ronald Rajesh good question. In fact Mvvm frameworks like Prism or MvvmCross avoid passing parameters through constructor. The do it through methods like OnNavigatedTo(parameters).
@anatoliytkachenko1498
@anatoliytkachenko1498 7 жыл бұрын
Thx for explanation!
@ashishgupta1212
@ashishgupta1212 5 жыл бұрын
Can you share your git repository ? Please
@conaugus
@conaugus 5 жыл бұрын
github.com/HoussemDellai/IoC-DI-Xamarin-Forms
@ruru31402
@ruru31402 7 жыл бұрын
Thank you Houssem!
@gkakak
@gkakak 6 жыл бұрын
Awesome!
Entity Framework Core with SQLite for Xamarin Forms
17:59
Houssem Dellai
Рет қаралды 47 М.
Getting Started with Dependency Injection in Xamarin.Forms
19:41
James Montemagno
Рет қаралды 16 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 149 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Plugins for Xamarin Forms
26:17
Houssem Dellai
Рет қаралды 12 М.
Dependency Injection with Unity Framework and C#
8:25
Programming w/ Professor Sluiter
Рет қаралды 22 М.
Dependency Injection
4:47
Anthony Ferrara
Рет қаралды 945 М.
Episode 5: MVVM & Data Binding with Xamarin.Forms
30:39
Microsoft Developer
Рет қаралды 90 М.
Validate User Input (email) in Xamarin Forms
16:42
Houssem Dellai
Рет қаралды 27 М.
From Code-Behind Code to MVVM with XAML and C#
19:19
Gerald Versluis
Рет қаралды 14 М.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 571 М.
Xamarin.Forms: Search Page
21:27
Houssem Dellai
Рет қаралды 25 М.
Multilingual in Xamarin Forms
10:10
Houssem Dellai
Рет қаралды 20 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 149 МЛН