Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Context Actions command binding with parameter

$
0
0

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 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>