public override void ViewDidLoad() { base.ViewDidLoad(); NavigationItem.SetHidesBackButton(true, false); Title = "Wsh Lst Login"; var source = new MvxBindableTableViewSource(TableView, UITableViewCellStyle.Default, new NSString("LoginView"), "{'TitleText':{'Path':'Name'}}", UITableViewCellAccessory.DisclosureIndicator); this.AddBindings(new Dictionary <object, string>() { { source, "{'ItemsSource':{'Path':'Platforms'}}" } }); source.SelectionChanged += (sender, e) => { var path = TableView.IndexPathForSelectedRow; var platform = ViewModel.Platforms [path.Row]; InvokeOnMainThread(() => TableView.DeselectRow(path, true)); ViewModel.Login(platform); }; NavigationController.ToolbarHidden = false; TableView.Source = source; TableView.ReloadData(); ViewModel.ViewController = this; }
public override void ViewDidLoad() { base.ViewDidLoad(); Title = "Best Sellers"; var source = new MvxBindableTableViewSource( TableView, UITableViewCellStyle.Default, new NSString("CategoryListView"), "{'TitleText':{'Path':'DisplayName'},'SelectedCommand':{'Path':'ShowCategoryCommand'}}", UITableViewCellAccessory.DisclosureIndicator); this.AddBindings( new Dictionary <object, string>() { { source, "{'ItemsSource':{'Path':'List'}}" } }); TableView.Source = source; TableView.ReloadData(); }