ItemView<TItem>
The element tree for one item in a
CollectionView.| Type parameter | Summary |
|---|---|
(class) TItem | The item type the cell shows. |
Properties
Content
The cell's element tree.
Type: View?
Item
The item this cell shows. Swapped on reuse; the bindings re-fire.
Type: TItem?
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, or null when it is cleared. |