[]
        
(Showing Draft Content)

C1.Blazor.ListView.C1ListView-1

C1ListView<T> Class

The ListView controls display a virtualized list of items.

Inheritance
C1ListView<T>
Namespace: C1.Blazor.ListView
Assembly: C1.Blazor.ListView.dll
Syntax
public class C1ListView<T> : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject
Type Parameters
Name Description
T

The type of the items

Constructors

Name Description
C1ListView()

Initializes a new instance of the C1ListView<T> class.

Fields

Name Description
AlternatingItemBackgroundColorProperty

Identifies the AlternatingItemBackgroundColor dependency property.

AlternatingItemTextColorProperty

Identifies the AlternatingItemTextColor dependency property.

GroupBackgroundColorProperty

Identifies the GroupBackgroundColor dependency property.

GroupTextColorProperty

Identifies the GroupTextColor dependency property.

ItemBackgroundColorProperty

Identifies the ItemBackgroundColor dependency property.

ItemTextColorProperty

Identifies the ItemTextColor dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

ScrollBarVisibilityProperty

Identifies the ScrollBarVisibility dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

SelectionProperty

Identifies the Selection dependency property.

SelectionStyleProperty

Identifies the SelectionStyle dependency property.

SeparatorWidthProperty

Identifies the SeparatorWidth dependency property.

ShowCheckboxesProperty

Identifies the ShowCheckboxes dependency property.

Properties

Name Description
AlternatingItemBackgroundColor

Gets or sets the C1Color that is used to paint the background of the odd items.

AlternatingItemTextColor

Gets or sets the C1Color of the odd items.

DataCollection

Gets the underlying collection.

DisplayMemberPath

Gets or sets the property name or path of the item that will be used to extract the text that will be displayed.

GroupBackgroundColor

Gets or sets the C1Color that is used to paint the background of the groups.

GroupTemplate

Gets or sets the template used to display groups.

GroupTextColor

Gets or sets the C1Color of the group items.

ItemBackgroundColor

Gets or sets the C1Color that is used to paint the background of items.

ItemDoubleTapped

Gets or sets the callback that will be called when an item is double tapped.

ItemHeight

Gets the height of the items.

ItemStyle

Gets or sets the style of the items.

ItemTapped

Gets or sets the callback that will be called when an item is tapped.

ItemTemplate

Gets or sets the template used to render the items.

ItemTextColor

Gets or sets the C1Color of the items.

Items

Gets the collection of items displayed in the list.

ItemsSource

Gets or sets the collection of items.

LoadingItem

Gets or sets the callback that is called when the items are being loaded.

ScrollBarVisibility

Gets or sets visibility of the vertical scrollbar.

Selection

Gets or sets the ListView selection.

SelectionChanged

Occurs after selection changed.

SelectionMode

Gets or sets how the cells or rows are selected.

SelectionStyle

Gets or sets the style of the selection.

SeparatorWidth

Gets or sets the width of the line separating items.

ShowCheckboxes

Sets the name of the property used to control checkboxes placed next to each item.

ViewportHeight

Gets the height of the viewport.

ViewportUpdated

Event callback that will be invoked when viewport is updated.

Methods

Name Description
BuildRenderTree(RenderTreeBuilder)
ChangeViewAsync(double)

Scrolls the list vertically to the specified offset.

Dispose(bool)
FocusAsync()

Sets the focus in the control.

InitializeAsync()

This method is called when the component is initialized.

OnAfterRender(bool)
OnItemDoubleTapped(ListViewInputEventArgs)

Raises the ItemDoubleTapped event.

OnItemTapped(ListViewInputEventArgs)

Raises the ItemTapped event.

OnKeyDown(KeyboardEventArgs)
OnKeyUp(KeyboardEventArgs)
OnLoadingItem(ListViewItemStyleEventArgs)

Raises the LoadingItem event.

Refresh()

Refresh current view panel

ScrollIntoView(int)

Scrolls the list to the specified index.

ScrollIntoViewAsync(int)

Scrolls the list to the specified index.

Select(int)

Selects the specified index.