Example #1
0
        void OnToDoItemTapped(object sender, ItemTappedEventArgs e)
        {
            var item = ToDo [e.ItemIndex];

            item.Completed = true;
            ToDo.Remove(item);
            ToDone.Add(item);
        }
Example #2
0
        void OnDoneItemTapped(object sender, ItemTappedEventArgs e)
        {
            var item = ToDone [e.ItemIndex];

            item.Completed = false;
            ToDone.Remove(item);
            ToDo.Add(item);
        }
Example #3
0
        protected void OnDoneUnchecked(object sender, EventArgs args)
        {
            var item = FindAssociatedToDoItem(sender as Element, ToDone);

            if (item != null)
            {
                item.Completed = false;
                ToDone.Remove(item);
                ToDo.Add(item);
            }
        }