예제 #1
0
        public OperationDetailPage(OperationDetailViewModel viewModel)
        {
            InitializeComponent();

            Title = "Info";

            BindingContext = this.viewModel = viewModel;
        }
예제 #2
0
        public OperationDetailPage()
        {
            InitializeComponent();

            var item = new Operation
            {
                Title   = "Item 1",
                Message = "This is an item description."
            };

            viewModel      = new OperationDetailViewModel(item);
            BindingContext = viewModel;
        }