# ItemsRepeater

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/struct-itemsrepeater/

**struct** · [`ferroui-controls-repeater`](/docs/0.5.0/api/ferroui-controls-repeater/) · v0.5.0

```rust
struct ItemsRepeater
```

A lightweight, virtualizing items host with pluggable layouts and factories.

Elements are ordinary FerroUI controls in the visual and logical trees.
ScrollViewer supplies the effective viewport and scroll anchors; the
repeater supplies no selection policy or implicit item container.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L53)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`items_source_property`](#function-items_source_property)
- [`item_template_property`](#function-item_template_property)
- [`layout_property`](#function-layout_property)
- [`item_transition_provider_property`](#function-item_transition_provider_property)
- [`horizontal_cache_length_property`](#function-horizontal_cache_length_property)
- [`vertical_cache_length_property`](#function-vertical_cache_length_property)
- [`virtualization_info_property`](#function-virtualization_info_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`items_source`](#function-items_source)
- [`set_items_source`](#function-set_items_source)
- [`items_source_view`](#function-items_source_view)
- [`item_template`](#function-item_template)
- [`set_item_template`](#function-set_item_template)
- [`set_data_template`](#function-set_data_template)
- [`set_element_factory`](#function-set_element_factory)
- [`layout`](#function-layout)
- [`set_layout`](#function-set_layout)
- [`item_transition_provider`](#function-item_transition_provider)
- [`set_item_transition_provider`](#function-set_item_transition_provider)
- [`horizontal_cache_length`](#function-horizontal_cache_length)
- [`set_horizontal_cache_length`](#function-set_horizontal_cache_length)
- [`vertical_cache_length`](#function-vertical_cache_length)
- [`set_vertical_cache_length`](#function-set_vertical_cache_length)
- [`get_element_index`](#function-get_element_index)
- [`try_get_element`](#function-try_get_element)
- [`get_or_create_element`](#function-get_or_create_element)
- [`pin_element`](#function-pin_element)
- [`unpin_element`](#function-unpin_element)
- [`realized_elements`](#function-realized_elements)
- [`try_get_virtualization_info`](#function-try_get_virtualization_info)
- [`get_virtualization_info`](#function-get_virtualization_info)
- [`layout_state`](#function-layout_state)
- [`set_layout_state`](#function-set_layout_state)
- [`layout_origin`](#function-layout_origin)
- [`set_layout_origin`](#function-set_layout_origin)
- [`visible_window`](#function-visible_window)
- [`realization_window`](#function-realization_window)
- [`element_prepared`](#function-element_prepared)
- [`element_clearing`](#function-element_clearing)
- [`element_index_changed`](#function-element_index_changed)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L78)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<ItemsRepeater>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L78)

<a id="function-items_source_property"></a>

### items_source_property

```rust
fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-item_template_property"></a>

### item_template_property

```rust
fn item_template_property() -> &'static StyledProperty<Option<BoxedValue>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-layout_property"></a>

### layout_property

```rust
fn layout_property() -> &'static StyledProperty<Option<Ref<Layout>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-item_transition_provider_property"></a>

### item_transition_provider_property

```rust
fn item_transition_provider_property() -> &'static StyledProperty<Option<Ref<ItemCollectionTransitionProvider>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-horizontal_cache_length_property"></a>

### horizontal_cache_length_property

```rust
fn horizontal_cache_length_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-vertical_cache_length_property"></a>

### vertical_cache_length_property

```rust
fn vertical_cache_length_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-virtualization_info_property"></a>

### virtualization_info_property

```rust
fn virtualization_info_property() -> &'static AttachedProperty<Option<Rc<VirtualizationInfo>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L373)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L417)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L443)

<a id="function-items_source"></a>

### items_source

```rust
fn items_source(self: &Self) -> Option<ItemsSource>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L446)

<a id="function-set_items_source"></a>

### set_items_source

```rust
fn set_items_source(self: &Self, source: Option<ItemsSource>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L449)

<a id="function-items_source_view"></a>

### items_source_view

```rust
fn items_source_view(self: &Self) -> Option<Rc<ItemsSourceView>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L452)

<a id="function-item_template"></a>

### item_template

```rust
fn item_template(self: &Self) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L455)

<a id="function-set_item_template"></a>

### set_item_template

```rust
fn set_item_template(self: &Self, template: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L458)

<a id="function-set_data_template"></a>

### set_data_template

```rust
fn set_data_template(self: &Self, template: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L461)

<a id="function-set_element_factory"></a>

### set_element_factory

```rust
fn set_element_factory(self: &Self, factory: Option<Rc<dyn IElementFactory>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L464)

<a id="function-layout"></a>

### layout

```rust
fn layout(self: &Self) -> Option<Ref<Layout>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L467)

<a id="function-set_layout"></a>

### set_layout

```rust
fn set_layout(self: &Self, layout: Option<Ref<Layout>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L470)

<a id="function-item_transition_provider"></a>

### item_transition_provider

```rust
fn item_transition_provider(self: &Self) -> Option<Ref<ItemCollectionTransitionProvider>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L473)

<a id="function-set_item_transition_provider"></a>

### set_item_transition_provider

```rust
fn set_item_transition_provider(self: &Self, provider: Option<Ref<ItemCollectionTransitionProvider>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L476)

<a id="function-horizontal_cache_length"></a>

### horizontal_cache_length

```rust
fn horizontal_cache_length(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L482)

<a id="function-set_horizontal_cache_length"></a>

### set_horizontal_cache_length

```rust
fn set_horizontal_cache_length(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L485)

<a id="function-vertical_cache_length"></a>

### vertical_cache_length

```rust
fn vertical_cache_length(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L488)

<a id="function-set_vertical_cache_length"></a>

### set_vertical_cache_length

```rust
fn set_vertical_cache_length(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L491)

<a id="function-get_element_index"></a>

### get_element_index

```rust
fn get_element_index(self: &Self, element: &Ref<Control>) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L495)

<a id="function-try_get_element"></a>

### try_get_element

```rust
fn try_get_element(self: &Self, index: i32) -> Option<Ref<Control>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L508)

<a id="function-get_or_create_element"></a>

### get_or_create_element

```rust
fn get_or_create_element(self: &Self, index: i32) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L511)

<a id="function-pin_element"></a>

### pin_element

```rust
fn pin_element(self: &Self, element: &Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L538)

<a id="function-unpin_element"></a>

### unpin_element

```rust
fn unpin_element(self: &Self, element: &Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L541)

<a id="function-realized_elements"></a>

### realized_elements

```rust
fn realized_elements(self: &Self) -> Vec<Ref<Control>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L555)

<a id="function-try_get_virtualization_info"></a>

### try_get_virtualization_info

```rust
fn try_get_virtualization_info(element: &Control) -> Option<Rc<VirtualizationInfo>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L568)

<a id="function-get_virtualization_info"></a>

### get_virtualization_info

```rust
fn get_virtualization_info(element: &Control) -> Rc<VirtualizationInfo>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L571)

<a id="function-layout_state"></a>

### layout_state

```rust
fn layout_state(self: &Self) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L579)

<a id="function-set_layout_state"></a>

### set_layout_state

```rust
fn set_layout_state(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L582)

<a id="function-layout_origin"></a>

### layout_origin

```rust
fn layout_origin(self: &Self) -> Point
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L585)

<a id="function-set_layout_origin"></a>

### set_layout_origin

```rust
fn set_layout_origin(self: &Self, value: Point)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L588)

<a id="function-visible_window"></a>

### visible_window

```rust
fn visible_window(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L595)

<a id="function-realization_window"></a>

### realization_window

```rust
fn realization_window(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L598)

<a id="function-element_prepared"></a>

### element_prepared

```rust
fn element_prepared(self: &Self, handler: impl Fn(&ItemsRepeaterElementPreparedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L602)

<a id="function-element_clearing"></a>

### element_clearing

```rust
fn element_clearing(self: &Self, handler: impl Fn(&ItemsRepeaterElementClearingEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L607)

<a id="function-element_index_changed"></a>

### element_index_changed

```rust
fn element_index_changed(self: &Self, handler: impl Fn(&ItemsRepeaterElementIndexChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/items_repeater.rs#L612)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`PanelImplExt`](/docs/0.5.0/api/ferroui-controls/trait-panelimplext/)
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<ItemsRepeater>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`PanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-panelimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- `Drop`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
