Beispiel #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            source = new ListTableSource(ListTableView);
            this.AddBindings(new Dictionary <object, string>
            {
                { source, "ItemsSource Deals" },
                { DealSearchBar, "Text SeekingText" }
            });

            this.CreateBinding(source).For(s => s.SelectedItem).To <ListViewModel>(vm => vm.Item).Apply();
            this.CreateBinding(source).For(s => s.SelectionChangedCommand).To <ListViewModel>(vm => vm.GoToChildCommand).Apply();

            DealSearchBar.TextChanged += (sender, e) =>
            {
                ViewModel.UpdateDeals();
            };

            ListTableView.Source    = source;
            ListTableView.RowHeight = 110f;
            ListTableView.ReloadData();
        }
Beispiel #2
0
 public override void ViewWillAppear(bool animated)
 {
     base.ViewWillAppear(animated);
     ListTableView.ReloadData();
 }