# ItemsControl

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

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

```rust
struct ItemsControl
```

Displays a collection of items.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`create_container_for_item_override`](#function-create_container_for_item_override)
- [`prepare_container_for_item_override`](#function-prepare_container_for_item_override)
- [`container_for_item_prepared_override`](#function-container_for_item_prepared_override)
- [`container_index_changed_override`](#function-container_index_changed_override)
- [`clear_container_for_item_override`](#function-clear_container_for_item_override)
- [`needs_container_override`](#function-needs_container_override)
- [`on_items_view_collection_changed`](#function-on_items_view_collection_changed)
- [`PSEUDO_CLASSES`](#assoc_const-pseudo_classes)
- [`item_container_theme_property`](#function-item_container_theme_property)
- [`item_count_property`](#function-item_count_property)
- [`items_panel_property`](#function-items_panel_property)
- [`items_source_property`](#function-items_source_property)
- [`item_template_property`](#function-item_template_property)
- [`display_member_binding_property`](#function-display_member_binding_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`display_member_binding`](#function-display_member_binding)
- [`set_display_member_binding`](#function-set_display_member_binding)
- [`item_container_generator`](#function-item_container_generator)
- [`items`](#function-items)
- [`item_container_theme`](#function-item_container_theme)
- [`set_item_container_theme`](#function-set_item_container_theme)
- [`item_count`](#function-item_count)
- [`items_panel`](#function-items_panel)
- [`set_items_panel`](#function-set_items_panel)
- [`items_source`](#function-items_source)
- [`set_items_source`](#function-set_items_source)
- [`item_template`](#function-item_template)
- [`set_item_template`](#function-set_item_template)
- [`presenter`](#function-presenter)
- [`items_panel_root`](#function-items_panel_root)
- [`items_view`](#function-items_view)
- [`wrap_focus`](#function-wrap_focus)
- [`set_wrap_focus`](#function-set_wrap_focus)
- [`preparing_container`](#function-preparing_container)
- [`container_prepared`](#function-container_prepared)
- [`container_index_changed`](#function-container_index_changed)
- [`container_clearing`](#function-container_clearing)
- [`DEFAULT_RECYCLE_KEY`](#assoc_const-default_recycle_key)
- [`container_from_index`](#function-container_from_index)
- [`container_from_item`](#function-container_from_item)
- [`index_from_container`](#function-index_from_container)
- [`item_from_container`](#function-item_from_container)
- [`get_realized_containers`](#function-get_realized_containers)
- [`scroll_into_view`](#function-scroll_into_view)
- [`scroll_into_view_item`](#function-scroll_into_view_item)
- [`items_control_from_item_container`](#function-items_control_from_item_container)
- [`needs_container`](#function-needs_container)
- [`refresh_containers`](#function-refresh_containers)
- [`get_next_control`](#function-get_next_control)

<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/items_control.rs#L58)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### create_container_for_item_override

```rust
fn create_container_for_item_override(self: &Self, item: &Option<BoxedValue>, index: i32, recycle_key: Option<RecycleKey>) -> Ref<Control>
```

Creates or a container that can be used to display an item.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### prepare_container_for_item_override

```rust
fn prepare_container_for_item_override(self: &Self, container: &Ref<Control>, item: &Option<BoxedValue>, index: i32)
```

Prepares the specified element to display the specified item.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### container_for_item_prepared_override

```rust
fn container_for_item_prepared_override(self: &Self, container: &Ref<Control>, item: &Option<BoxedValue>, index: i32)
```

Called when a container has been fully prepared to display an
item.

This method will be called when a container has been fully
prepared and added to the logical and visual trees, but may be
called before a layout pass has completed. It is called
immediately before the `container_prepared` event is raised.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### container_index_changed_override

```rust
fn container_index_changed_override(self: &Self, container: &Ref<Control>, old_index: i32, new_index: i32)
```

Called when the index for a container changes due to an
insertion or removal in the items collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### clear_container_for_item_override

```rust
fn clear_container_for_item_override(self: &Self, container: &Ref<Control>)
```

Undoes the effects of the `prepare_container_for_item_override`
method.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### needs_container_override

```rust
fn needs_container_override(self: &Self, item: &Option<BoxedValue>, index: i32) -> (bool, Option<RecycleKey>)
```

Determines whether the specified item can be its own container.

Returns true if the item needs a container; otherwise false if
the item can itself be used as a container. The second value is
a key that can be used to locate a previously recycled container
of the correct type, or `None` if the item cannot be recycled.
If the item is its own container then by definition it cannot be
recycled, so the key should be `None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### on_items_view_collection_changed

```rust
fn on_items_view_collection_changed(self: &Self, e: &ItemsChangedEventArgs<'_>)
```

Called when the collection changed event is raised on the items
view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L58)

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

### PSEUDO_CLASSES

```rust
const PSEUDO_CLASSES: PseudoClassesAttribute
```

The pseudoclasses set by the class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L357)

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

### item_container_theme_property

```rust
fn item_container_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
```

Defines the `ItemContainerTheme` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### item_count_property

```rust
fn item_count_property() -> &'static DirectProperty<ItemsControl, i32>
```

Defines the `ItemCount` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### items_panel_property

```rust
fn items_panel_property() -> &'static StyledProperty<Rc<dyn ITemplateOf<Option<Ref<Panel>>>>>
```

Defines the `ItemsPanel` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### items_source_property

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

Defines the `ItemsSource` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### item_template_property

```rust
fn item_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```

Defines the `ItemTemplate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### display_member_binding_property

```rust
fn display_member_binding_property() -> &'static StyledProperty<Option<AssignedBinding>>
```

Defines the `DisplayMemberBinding` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L360)

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

### construct

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

Creates the class data; see `ferroui_base::FerroObject::construct`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L422)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L441)

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

### display_member_binding

```rust
fn display_member_binding(self: &Self) -> Option<AssignedBinding>
```

Gets or sets the binding to use for binding to the display member of
each item.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L447)

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

### set_display_member_binding

```rust
fn set_display_member_binding(self: &Self, value: Option<AssignedBinding>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L451)

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

### item_container_generator

```rust
fn item_container_generator(self: &Self) -> Rc<ItemContainerGenerator>
```

Gets the `ItemContainerGenerator` for the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L456)

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

### items

```rust
fn items(self: &Self) -> ItemCollection
```

Gets the items to display.

You use either the `items` or the `items_source` property to specify
the collection that should be used to generate the content of your
`ItemsControl`. When the `items_source` property is set, the
`items` collection is made read-only and fixed-size.

When `items_source` is in use, setting the `items_source` property
to `None` removes the collection and restores usage to `items`,
which will be an empty `ItemCollection`.

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

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

### item_container_theme

```rust
fn item_container_theme(self: &Self) -> Option<Ref<ControlTheme>>
```

Gets or sets the `ControlTheme` that is applied to the container
element generated for each item.

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

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

### set_item_container_theme

```rust
fn set_item_container_theme(self: &Self, value: Option<Ref<ControlTheme>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L480)

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

### item_count

```rust
fn item_count(self: &Self) -> i32
```

Gets the number of items being displayed by the `ItemsControl`.

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

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

### items_panel

```rust
fn items_panel(self: &Self) -> Rc<dyn ITemplateOf<Option<Ref<Panel>>>>
```

Gets or sets the panel used to display the items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L497)

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

### set_items_panel

```rust
fn set_items_panel(self: &Self, value: Rc<dyn ITemplateOf<Option<Ref<Panel>>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L501)

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

### items_source

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

Gets or sets a collection used to generate the content of the
`ItemsControl`.

A common scenario is to use an `ItemsControl` such as a list box
to display a data collection, or to bind an `ItemsControl` to a
collection object. To bind an `ItemsControl` to a collection
object, use the `items_source` property.

When the `items_source` property is set, the `items` collection is
made read-only and fixed-size.

When `items_source` is in use, setting the property to `None`
removes the collection and restores usage to `items`, which will be
an empty `ItemCollection`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L519)

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

### set_items_source

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L523)

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

### item_template

```rust
fn item_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

Gets or sets the data template used to display the items in the
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L529)

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

### set_item_template

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L533)

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

### presenter

```rust
fn presenter(self: &Self) -> Option<Ref<ItemsPresenter>>
```

Gets the items presenter control.

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

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

### items_panel_root

```rust
fn items_panel_root(self: &Self) -> Option<Ref<Panel>>
```

Gets the `Panel` specified by `items_panel`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L543)

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

### items_view

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

Gets a read-only view of the items in the `ItemsControl`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L548)

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

### wrap_focus

```rust
fn wrap_focus(self: &Self) -> bool
```

Whether directional navigation wraps around at the first and last
items.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L554)

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

### set_wrap_focus

```rust
fn set_wrap_focus(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L558)

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

### preparing_container

```rust
fn preparing_container(self: &Self, handler: impl Fn(&ContainerPreparedEventArgs) -> () + 'static) -> Subscription
```

Occurs immediately before a container is prepared for use.

The prepared element might be newly created or an existing container
that is being re-used.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L569)

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

### container_prepared

```rust
fn container_prepared(self: &Self, handler: impl Fn(&ContainerPreparedEventArgs) -> () + 'static) -> Subscription
```

Occurs each time a container is prepared for use.

The prepared element might be newly created or an existing container
that is being re-used.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L586)

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

### container_index_changed

```rust
fn container_index_changed(self: &Self, handler: impl Fn(&ContainerIndexChangedEventArgs) -> () + 'static) -> Subscription
```

Occurs for each realized container when the index for the item it
represents has changed.

This event is raised for each realized container where the index for
the item it represents has changed. For example, when another item
is added or removed in the data source, the index for items that
come after in the ordering will be impacted.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L606)

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

### container_clearing

```rust
fn container_clearing(self: &Self, handler: impl Fn(&ContainerClearingEventArgs) -> () + 'static) -> Subscription
```

Occurs each time a container is cleared.

This event is raised immediately each time an container is cleared,
such as when it falls outside the range of realized items or the
corresponding item is removed.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L627)

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

### DEFAULT_RECYCLE_KEY

```rust
const DEFAULT_RECYCLE_KEY: RecycleKey
```

Gets a default recycle key that can be used when an `ItemsControl`
supports a single container type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L639)

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

### container_from_index

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

Returns the container for the item at the specified index.

Returns the container for the item at the specified index within the
item collection, if the item has a container; otherwise, `None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L645)

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

### container_from_item

```rust
fn container_from_item(self: &Self, item: &Option<BoxedValue>) -> Option<Ref<Control>>
```

Returns the container corresponding to the specified item.

Returns a container that corresponds to the specified item, if the
item has a container and exists in the collection; otherwise,
`None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L654)

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

### index_from_container

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

Returns the index to the item that has the specified, generated
container.

Returns the index to the item that corresponds to the specified
generated container, or -1 if `container` is not found.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L668)

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

### item_from_container

```rust
fn item_from_container(self: &Self, container: &Ref<Control>) -> Option<BoxedValue>
```

Returns the item that corresponds to the specified, generated
container.

Returns the contained item, or `None` if the container does not
contain an item.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L677)

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

### get_realized_containers

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

Gets the currently realized containers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L687)

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

### scroll_into_view

```rust
fn scroll_into_view(self: &Self, index: i32)
```

Scrolls the specified item into view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L692)

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

### scroll_into_view_item

```rust
fn scroll_into_view_item(self: &Self, item: &Option<BoxedValue>)
```

Scrolls the specified item into view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L699)

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

### items_control_from_item_container

```rust
fn items_control_from_item_container(container: &Ref<Control>) -> Option<Ref<ItemsControl>>
```

Returns the `ItemsControl` that owns the specified container
control.

Returns the owning `ItemsControl` or `None` if the control is not
an items container.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L708)

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

### needs_container

```rust
fn needs_container<T: ObjectType + Upcast<Control>>(self: &Self, item: &Option<BoxedValue>) -> (bool, Option<RecycleKey>)
```

A default implementation of `needs_container_override` that returns
true and sets the recycle key to
`DEFAULT_RECYCLE_KEY` if the item is
not a `T`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L726)

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

### refresh_containers

```rust
fn refresh_containers(self: &Self)
```

Refreshes the containers displayed by the control.

Causes all containers to be unrealized and re-realized.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L742)

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

### get_next_control

```rust
fn get_next_control(container: &dyn INavigableContainer, direction: NavigationDirection, from: Option<&Ref<InputElement>>, wrap: bool) -> Option<Ref<InputElement>>
```

Gets the next focusable, enabled and visible control of a container
in the specified direction.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/items_control.rs#L931)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`ItemsControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-itemscontrolimplext/)
- `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`
- [`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<ItemsControl>`](/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/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ItemsControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-itemscontrolimpl/)

## Availability

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