BindableList<TItem>
Bind(...) expression.Changes animate when the list is an
ObservableCollection.
- Kind: Struct
- Namespace: SkeleKit
- Implements:
IEnumerable<TItem>,IReadOnlyCollection<TItem>,IReadOnlyList<TItem>,IEnumerable
| Type parameter | Summary |
|---|---|
TItem | The element type of the list. |
Properties
Count
The number of current items. A binding that has not been evaluated yet is empty.
Type: int
this
Gets a current item by index.
Type: TItem
| Parameter | Summary |
|---|---|
int index |
Methods
Add
Adds an item when the wrapped source is mutable.
Bound and read-only sources cannot be mutated through this wrapper.
| Parameter | Summary |
|---|---|
TItem item |
GetEnumerator
Enumerates the current list value.
Returns
IEnumerator<TItem>: An enumerator over the current items.
Operators
Implicit BindableList<TItem>(BindingExpression<IVirtualizedList<TItem>?>)
Wraps an active binding to a virtualized list source.
| Parameter | Summary |
|---|---|
BindingExpression<IVirtualizedList<TItem>?> expression | The evaluation rule for the property. |
Returns
BindableList<TItem>: A virtualized list source using the binding expression.
Implicit BindableList<TItem>(BindingExpression<IReadOnlyList<TItem>?>)
Wraps an active binding to a list-typed source property.
| Parameter | Summary |
|---|---|
BindingExpression<IReadOnlyList<TItem>?> expression | The evaluation rule for the property. |
Returns
BindableList<TItem>: A list source using the binding expression.
Implicit BindableList<TItem>(BindingExpression<List<TItem>?>)
Wraps an active binding to a List-typed source property.
| Parameter | Summary |
|---|---|
BindingExpression<List<TItem>?> expression | The evaluation rule for the property. |
Returns
BindableList<TItem>: A list source using the binding expression.
Implicit BindableList<TItem>(BindingExpression<ObservableCollection<TItem>?>)
Wraps an active binding to an ObservableCollection-typed source property.
| Parameter | Summary |
|---|---|
BindingExpression<ObservableCollection<TItem>?> expression | The evaluation rule for the property. |
Returns
BindableList<TItem>: A live list source using the binding expression.
Implicit BindableList<TItem>(BindingExpression<TItem?>)
Wraps an active binding to an array-typed source property.
| Parameter | Summary |
|---|---|
BindingExpression<TItem?> expression | The evaluation rule for the property. |
Returns
BindableList<TItem>: A list source using the binding expression.
Implicit BindableList<TItem>(List<TItem>)
Wraps a list literal.
| Parameter | Summary |
|---|---|
List<TItem> value | The items to show. |
Returns
BindableList<TItem>: A list source containing the list.
Implicit BindableList<TItem>(ObservableCollection<TItem>)
Wraps an observable collection, whose changes animate into place.
| Parameter | Summary |
|---|---|
ObservableCollection<TItem> value | The live items to show. |
Returns
BindableList<TItem>: A live list source containing the collection.
Implicit BindableList<TItem>(TItem)
Wraps an array literal.
| Parameter | Summary |
|---|---|
TItem value | The items to show. |
Returns
BindableList<TItem>: A list source containing the array.