public ProductListViewController () { Title = "Xamarin Store"; // Hide the back button text when you leave this View Controller. NavigationItem.BackBarButtonItem = new UIBarButtonItem ("", UIBarButtonItemStyle.Plain, handler: null); TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; TableView.RowHeight = ProductCellRowHeight; TableView.Source = source = new ProductListViewSource (products => ProductTapped (products)); GetData (); }
public ProductListViewController() { Title = "Xamarin Store"; // Hide the back button text when you leave this View Controller. NavigationItem.BackBarButtonItem = new UIBarButtonItem("", UIBarButtonItemStyle.Plain, handler: null); TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; TableView.RowHeight = ProductCellRowHeight; TableView.Source = source = new ProductListViewSource(products => { ProductTapped(products); }); GetData(); }
public ProductListViewController () :base() { Title = "Xamarin Store"; // Hide the back button text when you leave this View Controller. NavigationItem.BackBarButtonItem = new UIBarButtonItem ("", UIBarButtonItemStyle.Plain, handler: null); TableView.SeparatorStyle = UITableViewCellSeparatorStyle.None; TableView.RowHeight = ProductCellRowHeight; TableView.AllowsSelection = false; TableView.Source = source = new ProductListViewSource (product => { ProductTapped (product); }); pullToRefreshStretchyView = new PullToRefreshStretchyView (new RectangleF ()); View.AddSubview (pullToRefreshStretchyView); TableView.Scrolled += HandleTableViewScrolled; TableView.DraggingEnded += HandleTableViewReleased; GetData (); }