public SegmentDetailPage()
        {
            InitializeComponent();

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

            viewModel      = new SegmentDetailViewModel(segment);
            BindingContext = viewModel;
        }
        public SegmentDetailPage(SegmentDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;
        }