Quantcast
Viewing all articles
Browse latest Browse all 77050

Context Actions command binding with parameter

Hello,

I am trying to implement a swipe to delete:

                  <ViewCell.ContextActions>
                    <MenuItem Command="{Binding Delete}"
                              CommandParameter="{Binding .}"
                              Text="{i18n:Translate Delete}"
                              IsDestructive="True" />
                  </ViewCell.ContextActions>

But, being it a list of MyObject, the output says that Delete was not found in MyObject. But it should be in the viewmodel.
How can i fix this?

Thanks!


Viewing all articles
Browse latest Browse all 77050

Trending Articles