public MainPageCS () { nativeListView = new NativeListView { Items = DataSource.GetList (), VerticalOptions = LayoutOptions.FillAndExpand }; Padding = new Thickness (0, Device.OnPlatform (20, 0, 0), 0, 0); Content = new Grid { RowDefinitions = { new RowDefinition { Height = GridLength.Auto }, new RowDefinition { Height = new GridLength (1, GridUnitType.Star) } }, Children = { new Label { Text = App.Description, HorizontalTextAlignment = TextAlignment.Center }, nativeListView } }; nativeListView.ItemSelected += OnItemSelected; }
public NativeiOSListViewSource (NativeListView view) { tableItems = view.Items.ToList (); listView = view; }