Corcav.Behaviors icon indicating copy to clipboard operation
Corcav.Behaviors copied to clipboard

argument exception adding behavior

Open lucamorelli opened this issue 8 years ago • 2 comments

Hi, I have a ViewModel based on MvvmLight ViewModelBase: In this viewmodel I have a list of objects and I need to call a method in the view model passing as parameter a value from the object in the list, just like in the demo, but when I set the CommandNameContext this way

CommandNameContext="{behaviors:RelativeContext MainContentPage}" I obtain this error message. System.ArgumentException: serviceProvider does not provide an IRootObjectProvider Am I missing something?

lucamorelli avatar Dec 26 '16 11:12 lucamorelli

same is happening with me. @lucamorelli are you able to find the solution? I know it is happening because [XamlCompilation(XamlCompilationOptions.Compile)] tag. If you have found something already, do let me know. 👍

ihassantariq avatar Aug 29 '17 13:08 ihassantariq

I am having exactly same issue. Is it solvable??

kaktusas2598 avatar Nov 07 '17 11:11 kaktusas2598