BaseListView

StockSharp.Xaml.Grids.Maui

Base class for trading data list views (card-based for mobile).

Inherits: ContentView

Constructors

BaseListView
public BaseListView()
baseListView = BaseListView()

Creates a new instance.

Properties

CollectionView
protected CollectionView CollectionView { get; }
value = baseListView.CollectionView

Gets the internal CollectionView.

ItemsSource
public IEnumerable ItemsSource { get; set; }
value = baseListView.ItemsSource
baseListView.ItemsSource = value

Gets or sets the items source.

SelectedItem
public object SelectedItem { get; set; }
value = baseListView.SelectedItem
baseListView.SelectedItem = value

Gets or sets the selected item.

ShowSearch
public bool ShowSearch { get; set; }
value = baseListView.ShowSearch
baseListView.ShowSearch = value

Gets or sets whether to show the search bar.

Methods

CreateItemTemplate
protected abstract DataTemplate CreateItemTemplate()
result = baseListView.CreateItemTemplate()

Creates the item template for the list. Override in derived classes.

FilterItem
protected virtual bool FilterItem(object item, string searchText)
result = baseListView.FilterItem(item, searchText)

Filters items based on search text. Override to implement search.

ScrollTo
public void ScrollTo(object item, ScrollToPosition position, bool animate)
baseListView.ScrollTo(item, position, animate)

Scrolls to the specified item.

Events

ItemTapped
public event EventHandler<object> ItemTapped
baseListView.ItemTapped += handler

Item tapped event.

SearchTextChanged
public event EventHandler<string> SearchTextChanged
baseListView.SearchTextChanged += handler

Search text changed event.

SelectionChanged
public event EventHandler<SelectionChangedEventArgs> SelectionChanged
baseListView.SelectionChanged += handler

Selection changed event.

Fields

ItemsSourceProperty
public static readonly BindableProperty ItemsSourceProperty
value = BaseListView.ItemsSourceProperty

Items source bindable property.

SelectedItemProperty
public static readonly BindableProperty SelectedItemProperty
value = BaseListView.SelectedItemProperty

Selected item bindable property.

ShowSearchProperty
public static readonly BindableProperty ShowSearchProperty
value = BaseListView.ShowSearchProperty

Show search bar bindable property.