# ItemsRepeaterScrollHost

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

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

```rust
struct ItemsRepeaterScrollHost
```

Compatibility host for a repeater inside a native ScrollViewer. Its
candidate selection retains the source host's vertical-edge convention:
HorizontalAnchorRatio controls that edge; VerticalAnchorRatio round-trips
for compatibility. Ordinary FerroUI scrolling does not require this host.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`scroll_viewer_property`](#function-scroll_viewer_property)
- [`horizontal_anchor_ratio_property`](#function-horizontal_anchor_ratio_property)
- [`vertical_anchor_ratio_property`](#function-vertical_anchor_ratio_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`scroll_viewer`](#function-scroll_viewer)
- [`set_scroll_viewer`](#function-set_scroll_viewer)
- [`horizontal_anchor_ratio`](#function-horizontal_anchor_ratio)
- [`set_horizontal_anchor_ratio`](#function-set_horizontal_anchor_ratio)
- [`vertical_anchor_ratio`](#function-vertical_anchor_ratio)
- [`set_vertical_anchor_ratio`](#function-set_vertical_anchor_ratio)
- [`is_horizontally_scrollable`](#function-is_horizontally_scrollable)
- [`is_vertically_scrollable`](#function-is_vertically_scrollable)
- [`current_anchor`](#function-current_anchor)
- [`anchor_element`](#function-anchor_element)
- [`register_anchor_candidate`](#function-register_anchor_candidate)
- [`unregister_anchor_candidate`](#function-unregister_anchor_candidate)
- [`get_relative_viewport`](#function-get_relative_viewport)
- [`start_bring_into_view`](#function-start_bring_into_view)
- [`has_pending_bring_into_view`](#function-has_pending_bring_into_view)
- [`viewport_changed`](#function-viewport_changed)
- [`post_arrange`](#function-post_arrange)
- [`configuration_changed`](#function-configuration_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_scroll_host.rs#L150)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### scroll_viewer_property

```rust
fn scroll_viewer_property() -> &'static StyledProperty<Option<Ref<ScrollViewer>>>
```



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

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

### horizontal_anchor_ratio_property

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



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

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

### vertical_anchor_ratio_property

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



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

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

### construct

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



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

<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_scroll_host.rs#L310)

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

### scroll_viewer

```rust
fn scroll_viewer(self: &Self) -> Option<Ref<ScrollViewer>>
```



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

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

### set_scroll_viewer

```rust
fn set_scroll_viewer(self: &Self, viewer: Option<Ref<ScrollViewer>>)
```



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

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

### horizontal_anchor_ratio

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



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

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

### set_horizontal_anchor_ratio

```rust
fn set_horizontal_anchor_ratio(self: &Self, ratio: f64)
```



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

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

### vertical_anchor_ratio

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



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

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

### set_vertical_anchor_ratio

```rust
fn set_vertical_anchor_ratio(self: &Self, ratio: f64)
```



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

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

### is_horizontally_scrollable

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



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

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

### is_vertically_scrollable

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



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

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

### current_anchor

```rust
fn current_anchor(self: &Self) -> Option<Ref<Control>>
```



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

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

### anchor_element

```rust
fn anchor_element(self: &Self) -> Option<Ref<Control>>
```



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

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

### register_anchor_candidate

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



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

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

### unregister_anchor_candidate

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



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

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

### get_relative_viewport

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



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

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

### start_bring_into_view

```rust
fn start_bring_into_view(self: &Self, element: &Ref<Control>, alignment_x: f64, alignment_y: f64, offset_x: f64, offset_y: f64, animate: bool)
```



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

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

### has_pending_bring_into_view

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



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

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

### viewport_changed

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



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

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

### post_arrange

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



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

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

### configuration_changed

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



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

## 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<ItemsRepeaterScrollHost>`](/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/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`PanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-panelimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`IScrollAnchorProvider`](/docs/0.5.0/api/ferroui-controls/trait-iscrollanchorprovider/)
- `Drop`

## Availability

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