December 2018
Intermediate to advanced
416 pages
10h 30m
English
We need to add a functionality that allows us to toggle the items between complete and active. It is possible to navigate to the detailed view of the to-do list item, but this is too much work for a user. Instead, we'll add a ContextAction to the ListView. In iOS, for example, this will be accessed by swiping left on a row:
public ICommand ToggleCompleted => new Command((arg) =>{ Item.Completed = !Item.Completed; ItemStatusChanged?.Invoke(this, new EventArgs());});
Here, we have added a command for toggling ...
Read now
Unlock full access