Пример #1
0
        public PlacesListPage(RootPage root)
        {
            InitializeComponent();


            var vm = new HomeViewModel(Navigation);

            BindingContext = vm;
            this.root      = root;

            Title = "PlacesList";

            PlacesList.IsPullToRefreshEnabled = true;
            PlacesList.RefreshCommand         = vm.RefreshCommand;
            PlacesList.SetBinding(ListView.IsRefreshingProperty, nameof(HomeViewModel.IsBusy));
            PlacesList.ItemTapped += PlacesList_ItemTapped;
        }