Xamarin.Forms.Core 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.ItemsView<Xamarin.Forms.Cell> Xamarin.Forms.Cell Xamarin.Forms.IListViewController Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._ListViewRenderer)) An that displays a collection of data as a vertical list. The following example shows a basic use: people = new List { new Person("Abigail", new DateTime(1975, 1, 15), Color.Aqua), new Person("Bob", new DateTime(1976, 2, 20), Color.Black), // ...etc.,... new Person("Yvonne", new DateTime(1987, 1, 10), Color.Purple), new Person("Zachary", new DateTime(1988, 2, 5), Color.Red) }; // Create the ListView. ListView listView = new ListView { // Source of data items. ItemsSource = people, // Define template for displaying each item. // (Argument of DataTemplate constructor is called for // each item; it must return a Cell derivative.) ItemTemplate = new DataTemplate(() => { // Create views with bindings for displaying each property. Label nameLabel = new Label(); nameLabel.SetBinding(Label.TextProperty, "Name"); Label birthdayLabel = new Label(); birthdayLabel.SetBinding(Label.TextProperty, new Binding("Birthday", BindingMode.OneWay, null, null, "Born {0:d}")); BoxView boxView = new BoxView(); boxView.SetBinding(BoxView.ColorProperty, "FavoriteColor"); // Return an assembled ViewCell. return new ViewCell { View = new StackLayout { Padding = new Thickness(0, 5), Orientation = StackOrientation.Horizontal, Children = { boxView, new StackLayout { VerticalOptions = LayoutOptions.Center, Spacing = 0, Children = { nameLabel, birthdayLabel } } } } }; }) }; // Accomodate iPhone status bar. this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5); // Build the page. this.Content = new StackLayout { Children = { header, listView } }; } } } ]]> XAML for Xamarin.Forms supports the following properties for the class: Property Value HasUnevenRows true or false, to indicate whether the items in the list all have the same height. IsGroupingEnabled true or false, to indicate whether grouping is enabled. RowHeight An integer that describes the height of the items in the list. This is ignored if HasUnevenRows is true. Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Creates and initializes a new instance of the class. Constructor 1.5.0.0 2.0.0.0 A value that indicates how the List View should manage memory when displaying data items using a data template. Creates and initializes a new instance of the class, with the specified caching strategy. For memory and performance reasons, application developers should strongly prefer , when possible. See for more details. When devolopers specify , OnElementChanged events are not raised when cells are recycled. Instead, the cell is retained and its property values change when the binding context is updated to that of an available cell, OnElementPropertyChanged events are raised. Application developers should remember to listen for the correct events, and should note that their renderers will need to be updated if the default behavior changes to in a future release. Method 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void Enters the refreshing state by setting the property to . To be added. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.Cell The item to create a default visual for. Creates an instance of the default visual representation of an item. A instance with its text set to the string representation of the object (). This method is called by the templating system when is . The of the returned object will automatically be set to , there is no need to set it yourself. If you do, it will be overridden. Method 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void Exits the refreshing state by setting the property to . To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Object Gets or sets the string, binding, or view that will be displayed at the bottom of the list view. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.DataTemplate Gets or sets a data template to use to format a data object for display at the bottom of the list view. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindingBase Gets or sets the binding to use for display the group header. The instance to apply to grouped lists, or . This binding can be used to simply set a the text of the group headers without defining a full template and uses the default visuals of the platform to display it. The binding is applied to the of the group. This property is mutually exclusive with property. Setting it will set to . This example shows an alphabetized list of people, grouped by first initial with the display binding set. { public Group (string firstInitial) { FirstInitial = firstInitial; } public string FirstInitial { get; private set; } } ]]> Field 1.0.0.0 1.1.0.0 1.2.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.DataTemplate Gets or sets a for group headers. The for group headers, or . Use this property to define a template for a that will be used as the header for groups in this . The will be the for each group. GroupHeaderTemplate is mutually exclusive with . Setting this property will set to . Empty groups will still display a group header. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindingBase Gets or sets a binding for the name to display in grouped jump lists. The instance to apply to grouped lists, or . When grouping items in a , it is often useful to have jump lists to jump to specific sections in the list. For example, in an alphabetically grouped lists, the jump list would be the the letter of each group. This binding is applied against the of each group to select the short name to display in the jump list. Note: On Android, there is no displayed jump list. This example shows an alphabetized list of people, grouped by first initial with the short name binding set. { public Group (string firstInitial) { FirstInitial = firstInitial; } public string FirstInitial { get; private set; } } ]]> Field 1.0.0.0 1.1.0.0 1.2.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Boolean Gets or sets a Boolean value that indicates whether this element has uneven rows. if this control has uneven rows. Otherwise, Application developers will find that the easiest and least error-prone way to automatically size list view rows for content is: first, to set the property to ; and, second, to either leave at its default value of -1, or set it to -1 if it has been changed. Application developers will find that the easiest and least error-prone way to set all rows to a constant size is to first set to , and then either: leave at its default value of -1 (or set it back to that value if it has been changed) in order to get the default height for the system; or set the property to the desired uniform row height. A more detailed discussion follows, below. When the app developer sets the property to , the behavior of the list view depends on the property. First, if the developer sets the property to a positive value, then all rows in the , irrespective of the height of their content, will be as tall as the specified property value. Second, if the develper instead does not set the property, or sets it to a nonpositive value, then all rows in the , irrespective of the height of their content, will have the default row height for the system. When the app developer sets the property to , the behavior of the list view still depends on the property. First, if the developer either does not set the property or sets it to -1, list view items are autosized to fit their contents. This is the desired behavior and the intended use case for a value of , as noted above. Second, if the developer sets the property to 0 or to a negative value other than -1, then all rows in the will, irrespective of the height of their content, have the default height for the system. Third, and finally, if the developer sets to a positive value, then all rows in the will, irrespective of the height of their content, be as tall as , as if had been set to . Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Object Gets or sets the string, binding, or view that will be displayed at the top of the list view. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.DataTemplate Gets or sets a data template to use to format a data object for display at the top of the list view. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Boolean Gets or sets whether or not grouping is enabled for . if grouping is enabled, otherwise and by default. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Boolean Gets or sets a value that tells whether the user can swipe down to cause the application to refresh. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Boolean Gets or sets a value that tells whether the list view is currently refreshing. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler<Xamarin.Forms.ItemVisibilityEventArgs> Occurs when the visual representation of an item is being added to the visual layout. This method is guaranteed to fire at some point before the element is on screen. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler<Xamarin.Forms.ItemVisibilityEventArgs> Occurs when the visual representation of an item is being removed from the visual layout. This method is for virtualization usage only. It is not guaranteed to fire for all visible items when the List is removed from the screen. Additionally it fires during virtualization, which may not correspond directly with removal from the screen depending on the platform virtualization technique used. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler<Xamarin.Forms.SelectedItemChangedEventArgs> Event that is raised when a new item is selected. To be added. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler<Xamarin.Forms.ItemTappedEventArgs> Event that is raised when an item is tapped. To be added. Method 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Obsolete("Use OnMeasure") Xamarin.Forms.SizeRequest To be added. To be added. Method that is called when a size request is made.. To be added. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Windows.Input.ICommand Gets or sets the command that is run when the list view enters the refreshing state. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Event 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler Event that is raised when the list view refreshes. To be added. Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Int32 Gets or sets a value that represents the height of a row. To be added. To be added. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty The backing store for the property. Method 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void The item from your to scroll to. How the item should be positioned on screen. Whether or not the scroll should be animated. Scrolls the ListView to the . A linear search is done for the item, so if the same reference appears multiple times in the list, the first item will be scrolled to. This includes if grouping is enabled. contains an invalid value for . Method 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void The item from your to scroll to. The group from your to scroll to. How the item should be positioned on screen. Whether or not the scroll should be animated. Scrolls the ListView to the in the A linear search is done for the item, so if the same reference appears multiple times in the , the first item will be scrolled to. The same item in a different group will be ignored. contains an invalid value for . is . Property 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Object Gets or sets the currently selected item from the . The selected item or if no item is selected. Field 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Identifies the property. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.Color Gets or sets the color of the bar that separates list items. To be added. The default value is Color.Default. This property has no effect if is . Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.SeparatorVisibility Gets or sets a value that tells whether separators are visible between items. To be added. To be added. Field 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.BindableProperty Backing store for the property. To be added. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void The cell to set up. The index of the cell in the list of items. Application developers override this method to register event handlers for list view items. Application developers must call before performing any other action when overriding this method. Application developers who override this method to allocate resources must override in order to deallocate them. Method 1.4.0.0 1.5.0.0 2.0.0.0 System.Void To be added. Application developers override this method to unregister event handlers for list view items that they registered in . Application developers must call before performing any other action when overriding this method. Application developers who override to allocate resources must override this method in order to deallocate them. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 System.Void To be added. Raises the event for . To be added. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 System.Void To be added. Raises the event for . To be added. Method 1.3.5.0 1.4.0.0 1.5.0.0 System.Void To be added. Internal. To be added. Method 1.3.5.0 1.4.0.0 1.5.0.0 System.Void To be added. Internal. To be added. Property 2.0.0.0 Xamarin.Forms.ListViewCachingStrategy To be added. To be added. To be added. Method 2.0.0.0 Xamarin.Forms.Cell To be added. To be added. To be added. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.Element Internal. To be added. To be added. Method 2.0.0.0 System.String To be added. To be added. To be added. To be added. Property 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 Xamarin.Forms.Element Internal. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. To be added. To be added. Property 2.0.0.0 System.Boolean To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. Method 2.0.0.0 System.Void To be added. To be added. To be added. Method 1.3.5.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void Internal. To be added.