
CachingStrategy, of type ListViewCachingStrategy, defines the cell reuse strategy of the ListView. GroupShortNameBinding, of type BindingBase, the binding for the name to display in grouped jump lists. Therefore, setting this property will set GroupHeaderTemplate to null. This property is mutually exclusive with the GroupHeaderTemplate property.
GroupDisplayBinding, of type BindingBase, the binding to use for displaying the group header.In addition, ListView defines the following properties that aren't backed by BindableProperty objects: VerticalScrollBarVisibility, of type ScrollBarVisibility, indicates when the vertical scroll bar will be visible.Īll of these properties are backed by BindableProperty objects, which means that they can be targets of data bindings, and styled.SeparatorVisibility, of type SeparatorVisibility, defines whether separators are visible between items.SeparatorColor, of type Color, defines the color of the bar that separates items in the list.The default value of this property is Single. SelectionMode, of type ListViewSelectionMode, indicates whether items can be selected in the ListView or not.
SelectedItem, of type object, represents the currently selected item in the ListView.RowHeight, of type int, determines the height of each row when HasUnevenRows is false.RefreshControlColor, of type Color, determines the color of the refresh visualization that's shown while a refresh occurs.RefreshCommand, of type ICommand, represents the command that will be executed when a refresh is triggered.
The default value of this property is false.
IsRefreshing, of type bool, indicates whether the ListView is currently refreshing. IsPullToRefreshEnabled, of type bool, indicates whether the user can swipe down to cause the ListView to refresh its data. IsGroupedEnabled, of type bool, indicates whether the underlying data should be displayed in groups. HorizontalScrollBarVisibility, of type ScrollBarVisibility, indicates when the horizontal scroll bar will be visible. HeaderTemplate, of type DataTemplate, specifies the DataTemplate to use to format the Header. Header, of type object, specifies the string or view that will be displayed at the start of the list. HasUnevenRows, of type bool, indicates whether items in the list can have rows of different heights. Therefore, setting this property will set GroupDisplayBinding to null. This property is mutually exclusive with the GroupDisplayBinding property. GroupHeaderTemplate, of type DataTemplate, defines the DataTemplate used to define the appearance of the header of each group. FooterTemplate, of type DataTemplate, specifies the DataTemplate to use to format the Footer. Footer, of type object, specifies the string or view that will be displayed at the end of the list. ListView defines the following properties: ItemTemplate, of type DataTemplate, specifies the template to apply to each item in the collection of items to be displayed. ItemsSource, of type IEnumerable, specifies the collection of items to be displayed, and has a default value of null. The ListView class derives from the ItemsView class, from which it inherits the following properties: ListView also includes support for displaying headers and footers, grouped data, pull-to-refresh, and context menu items. While ListView manages the appearance of the list, the appearance of each item in the list is defined by a DataTemplate that uses a Cell to display items.NET MAUI includes cell types to display combinations of text and images, and you can also define custom cells that display any content you want. NET Multi-platform App UI (.NET MAUI) ListView displays a scrollable vertical list of selectable data items.