Bind Command to a template view from viewmodel xamarin prism

viniciusmsdsviniciusmsds Member ✭✭

I use prism on the project. My problem is: i have a View OrdemServicoView and a model OrdemServicoViewModel, OrdemServicoView has a syncfusion list... inside has a DataTemplate with a some propertys pass and i can bind, but when i try use command inside template it doesnt work, the command code is in OrdemServicoViewModel... how can i do that?

OrdemServicoViewModel:

public DelegateCommand ItemSelectedCommand { get; set; }
OrdemServicoView (List):

<syncfusion:SfListView.ItemTemplate>



</syncfusion:SfListView.ItemTemplate>
In OrdemServicoCardView i try to make a button with ItemSelectedCommand binded

Best Answer

Answers

Sign In or Register to comment.