ItemView<TItem>
CollectionView.- Kind: Class
- Namespace: SkeleKit
- Inherits:
ContentHost
| Type parameter | Summary |
|---|---|
(class) TItem | The item type the cell shows. |
Constructors
Properties
Accessories
The native affordances pinned to this item's edges.
Configure the collection in the template constructor. Later changes update the cell in place.
Type: IList<ItemAccessory>
HighlightBackground
The background shown while the cell is pressed, and while selected when the collection retains the highlight. Null disables the highlight.
Type: BindableBrush?
Item
The item this cell shows, or null before its first assignment. Swapped by the owning collection on reuse; the bindings re-fire.
Type: TItem?
SkeleKit.ICollectionItemView.Accessories
Type: IReadOnlyList<ItemAccessory>
SkeleKit.ICollectionItemView.CurrentItem
Type: object?
SkeleKit.ICollectionItemView.HighlightBackground
Type: Brush?
SkeleKit.ICollectionItemView.View
Type: View
Methods
ArrangeOverride
Content arrangement. Panels override to place their children.
| Parameter | Summary |
|---|---|
Size finalSize | The final size available for the view's content. |
Returns
Size: The arranged content size.
Bind
Starts a binding that can only write control values to the item.
Returns
ToSourceBindingBuilder<TItem>: A source-only binding builder.
Bind
Binds one way to an item property.
| Parameter | Summary |
|---|---|
Func<TItem, T> read | The item property to read. |
(optional) string? path | The source lambda, captured automatically to derive the property path. |
| Type parameter | Summary |
|---|---|
T | The bound value type. |
Returns
BindingExpression<TItem, TItem, T>: The binding expression.
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.
OnItemChanged
Raised whenever this recycled view receives a different item.
| Parameter | Summary |
|---|---|
TItem item | The item now represented by the view. |