コード例 #1
0
        // Note - The Xamarin.Forms Previewer requires a default, parameterless constructor to render a page.
        public RouteDetailPage()
        {
            InitializeComponent();

            var camp = new Route
            {
                Name = "Route 1"
            };

            viewModel      = new RouteDetailViewModel(camp);
            BindingContext = viewModel;
        }
コード例 #2
0
        // Note - The Xamarin.Forms Previewer requires a default, parameterless constructor to render a page.
        public RouteDetailPage()
        {
            InitializeComponent();

            var route = new Route
            {
                Name = "Route 1"
            };

            viewModel      = new RouteDetailViewModel(route);
            BindingContext = viewModel;
            RouteStopsListView.IsVisible = true;
        }
コード例 #3
0
        public RouteDetailPage(RouteDetailViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = this.viewModel = viewModel;
        }