Remove Method
We'll allow the user to remove any item from the collection.
The Remove method needs to know the item to be deleted. We can pass it as a parameter.
<dot:Button Click="{command: _root.Remove(_this)}"
Text="Remove Item" />
Tasks
- Inside the
Removemethod, delete theitemparameter fromItems.
| Message | Line | Column | |
|---|---|---|---|
|
|