[]
        
(Showing Draft Content)

C1.WPF.C1ListBox

C1ListBox Class

List of items which can be used with heavy templates and preview template to scroll quickly.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[StyleTypedProperty(Property = "ItemContainerStyle", StyleTargetType = typeof(C1ListBoxItem))]
public class C1ListBox : C1ListViewer, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, INotifyPropertyChanged
Remarks

This control supports selection by cross-slide gesture.

Constructors

Name Description
C1ListBox()

Initializes a new instance of a C1ListBox.

Fields

Name Description
MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedItemProperty

Identifies the SelectedItem dependency property.

SelectedItemsProperty

Identifies the SelectedItems dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

Properties

Name Description
MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

SelectedBackground

Gets or sets the Brush used to highlight the control when it is selected.

SelectedItem

Gets or set the item which is selected.

SelectedItems

Gets or set the list of items which are selected.

SelectionMode

Gets or sets if selection is disabled, single, multiple, or extended.

Methods

Name Description
ClearSelection()

Clears the selection.

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

InitializePanel()

Initializes the panel.

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

OnItemTapped(object, C1TappedEventArgs)

Called when one of the items is tapped.

OnItemsChanged(NotifyCollectionChangedEventArgs)
OnSelectionChanged(object, SelectionChangedEventArgs<int>)

Called when the selection changed.

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

Events

Name Description
SelectionChanged

Occurs when the selection changed.

Extension Methods