Na projekcie cross platformowym w Xamarin chciałem ustawić kasowanie profilu z ListView.
Nie chcę użuywać akcji tylko zrobić to przez Command ale nie wiem jak.
View
...<ViewCell.ContextActions>
<MenuItem Text="Delete" IsDestructive="True" Command="Binding DeleteItemCommend}" />
</ViewCell.ContextActions>...
ViewModel nie wiem jak to zrobić.
#region Properties
private ObservableCollection<ProfileModel> _profileItems = null;
public ObservableCollection<ProfileModel> ProfileItems
{
get
{
return _profileItems;
}
set
{
if (_profileItems != value)
{
_profileItems = value;
OnPropertyChanged();
}
}
}
...
public Command DeleteItemCommend
{
get
{
}
}
...