Remove Button
Finally, we need a "Remove" button for every item.
Since the Remove
method doesn't belong to ToDoItem
, we need to access the _root
Binding Context. We'll also need to pass the current item as a parameter to the command. We can use _this
to reference the current item.
Tasks
- Add a
Button
to theRepeater
template. - This button needs to call
Remove
on_root
with_this
as a parameter.
Message | Line | Column | |
---|---|---|---|