コード例 #1
0
        public SegmentDetailPage()
        {
            InitializeComponent();

            var segment = new Segment
            {
                Text   = "Segment 1",
                Points = new System.Collections.Generic.List <PointBasket>()
            };

            viewModel      = new SegmentDetailViewModel(segment);
            BindingContext = viewModel;
        }
コード例 #2
0
        public SegmentDetailPage(SegmentDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;
        }