Example #1
0
        public ToDoTaskDetailPage()
        {
            InitializeComponent();

            var item = new ToDoTask
            {
                Description = "This is an task description."
            };

            viewModel      = new ToDoTaskDetailViewModel(item);
            BindingContext = viewModel;
        }
Example #2
0
        public ToDoTaskDetailPage(ToDoTaskDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;
        }