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
@bhundalinfotech3 жыл бұрын
Its really helpful, thanks for sharing it.
@rahultripathikanpur6 жыл бұрын
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)
@CookieMonsteeerrr5 жыл бұрын
don't you think service locator is anti pattern? every time i read on stackoverflow mostly people say to not use it.
@TheTiapom6 жыл бұрын
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
@arrajeshabi7 жыл бұрын
this is really good video, but how about passing parameter to constructor
@HoussemDellai7 жыл бұрын
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).