Пример #1
0
        private TodoItemViewModel CreateTodoItemViewModel(TodoItem item)
        {
            var itemViewModel = new TodoItemViewModel(item);

            itemViewModel.ItemStatusChanged += ItemStatusChanged;
            return(itemViewModel);
        }
Пример #2
0
        private async Task NavigateToItem(TodoItemViewModel item)
        {
            if (item == null)
            {
                return;
            }
            var itemView = Resolver.Resolve <ItemView>();
            var vm       = itemView.BindingContext as ItemViewModel;

            vm.Item = item.Item;

            await Navigation.PushAsync(itemView);
        }