# ScrollViewer

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

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

```rust
struct ScrollViewer
```

A control which scrolls its content if the content is bigger than the
space available.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`on_scroll_changed`](#function-on_scroll_changed)
- [`TEMPLATE_PARTS`](#assoc_const-template_parts)
- [`bring_into_view_on_focus_change_property`](#function-bring_into_view_on_focus_change_property)
- [`extent_property`](#function-extent_property)
- [`offset_property`](#function-offset_property)
- [`zoom_mode_property`](#function-zoom_mode_property)
- [`min_zoom_factor_property`](#function-min_zoom_factor_property)
- [`max_zoom_factor_property`](#function-max_zoom_factor_property)
- [`zoom_factor_property`](#function-zoom_factor_property)
- [`viewport_property`](#function-viewport_property)
- [`large_change_property`](#function-large_change_property)
- [`small_change_property`](#function-small_change_property)
- [`scroll_bar_maximum_property`](#function-scroll_bar_maximum_property)
- [`horizontal_scroll_bar_visibility_property`](#function-horizontal_scroll_bar_visibility_property)
- [`horizontal_snap_points_type_property`](#function-horizontal_snap_points_type_property)
- [`vertical_snap_points_type_property`](#function-vertical_snap_points_type_property)
- [`horizontal_snap_points_alignment_property`](#function-horizontal_snap_points_alignment_property)
- [`vertical_snap_points_alignment_property`](#function-vertical_snap_points_alignment_property)
- [`vertical_scroll_bar_visibility_property`](#function-vertical_scroll_bar_visibility_property)
- [`is_expanded_property`](#function-is_expanded_property)
- [`allow_auto_hide_property`](#function-allow_auto_hide_property)
- [`is_scroll_chaining_enabled_property`](#function-is_scroll_chaining_enabled_property)
- [`is_scroll_inertia_enabled_property`](#function-is_scroll_inertia_enabled_property)
- [`is_deferred_scrolling_enabled_property`](#function-is_deferred_scrolling_enabled_property)
- [`scroll_changed_event`](#function-scroll_changed_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`scroll_changed`](#function-scroll_changed)
- [`bring_into_view_on_focus_change`](#function-bring_into_view_on_focus_change)
- [`set_bring_into_view_on_focus_change`](#function-set_bring_into_view_on_focus_change)
- [`extent`](#function-extent)
- [`offset`](#function-offset)
- [`set_offset`](#function-set_offset)
- [`viewport`](#function-viewport)
- [`zoom_mode`](#function-zoom_mode)
- [`set_zoom_mode`](#function-set_zoom_mode)
- [`min_zoom_factor`](#function-min_zoom_factor)
- [`set_min_zoom_factor`](#function-set_min_zoom_factor)
- [`max_zoom_factor`](#function-max_zoom_factor)
- [`set_max_zoom_factor`](#function-set_max_zoom_factor)
- [`zoom_factor`](#function-zoom_factor)
- [`change_view`](#function-change_view)
- [`change_view_with`](#function-change_view_with)
- [`zoom_to_factor`](#function-zoom_to_factor)
- [`large_change`](#function-large_change)
- [`small_change`](#function-small_change)
- [`horizontal_scroll_bar_visibility`](#function-horizontal_scroll_bar_visibility)
- [`set_horizontal_scroll_bar_visibility`](#function-set_horizontal_scroll_bar_visibility)
- [`vertical_scroll_bar_visibility`](#function-vertical_scroll_bar_visibility)
- [`set_vertical_scroll_bar_visibility`](#function-set_vertical_scroll_bar_visibility)
- [`can_horizontally_scroll`](#function-can_horizontally_scroll)
- [`can_vertically_scroll`](#function-can_vertically_scroll)
- [`current_anchor`](#function-current_anchor)
- [`scroll_bar_maximum`](#function-scroll_bar_maximum)
- [`is_expanded`](#function-is_expanded)
- [`horizontal_snap_points_type`](#function-horizontal_snap_points_type)
- [`set_horizontal_snap_points_type`](#function-set_horizontal_snap_points_type)
- [`vertical_snap_points_type`](#function-vertical_snap_points_type)
- [`set_vertical_snap_points_type`](#function-set_vertical_snap_points_type)
- [`horizontal_snap_points_alignment`](#function-horizontal_snap_points_alignment)
- [`set_horizontal_snap_points_alignment`](#function-set_horizontal_snap_points_alignment)
- [`vertical_snap_points_alignment`](#function-vertical_snap_points_alignment)
- [`set_vertical_snap_points_alignment`](#function-set_vertical_snap_points_alignment)
- [`allow_auto_hide`](#function-allow_auto_hide)
- [`set_allow_auto_hide`](#function-set_allow_auto_hide)
- [`is_scroll_chaining_enabled`](#function-is_scroll_chaining_enabled)
- [`set_is_scroll_chaining_enabled`](#function-set_is_scroll_chaining_enabled)
- [`is_scroll_inertia_enabled`](#function-is_scroll_inertia_enabled)
- [`set_is_scroll_inertia_enabled`](#function-set_is_scroll_inertia_enabled)
- [`is_deferred_scrolling_enabled`](#function-is_deferred_scrolling_enabled)
- [`set_is_deferred_scrolling_enabled`](#function-set_is_deferred_scrolling_enabled)
- [`line_up`](#function-line_up)
- [`line_down`](#function-line_down)
- [`line_left`](#function-line_left)
- [`line_right`](#function-line_right)
- [`page_up`](#function-page_up)
- [`page_down`](#function-page_down)
- [`page_left`](#function-page_left)
- [`page_right`](#function-page_right)
- [`scroll_to_home`](#function-scroll_to_home)
- [`scroll_to_end`](#function-scroll_to_end)
- [`get_bring_into_view_on_focus_change`](#function-get_bring_into_view_on_focus_change)
- [`set_bring_into_view_on_focus_change_on`](#function-set_bring_into_view_on_focus_change_on)
- [`get_horizontal_scroll_bar_visibility`](#function-get_horizontal_scroll_bar_visibility)
- [`set_horizontal_scroll_bar_visibility_on`](#function-set_horizontal_scroll_bar_visibility_on)
- [`get_horizontal_snap_points_type`](#function-get_horizontal_snap_points_type)
- [`set_horizontal_snap_points_type_on`](#function-set_horizontal_snap_points_type_on)
- [`get_vertical_snap_points_type`](#function-get_vertical_snap_points_type)
- [`set_vertical_snap_points_type_on`](#function-set_vertical_snap_points_type_on)
- [`get_horizontal_snap_points_alignment`](#function-get_horizontal_snap_points_alignment)
- [`set_horizontal_snap_points_alignment_on`](#function-set_horizontal_snap_points_alignment_on)
- [`get_vertical_snap_points_alignment`](#function-get_vertical_snap_points_alignment)
- [`set_vertical_snap_points_alignment_on`](#function-set_vertical_snap_points_alignment_on)
- [`get_vertical_scroll_bar_visibility`](#function-get_vertical_scroll_bar_visibility)
- [`set_allow_auto_hide_on`](#function-set_allow_auto_hide_on)
- [`get_allow_auto_hide`](#function-get_allow_auto_hide)
- [`set_is_scroll_chaining_enabled_on`](#function-set_is_scroll_chaining_enabled_on)
- [`get_is_scroll_chaining_enabled`](#function-get_is_scroll_chaining_enabled)
- [`set_vertical_scroll_bar_visibility_on`](#function-set_vertical_scroll_bar_visibility_on)
- [`get_is_scroll_inertia_enabled`](#function-get_is_scroll_inertia_enabled)
- [`set_is_scroll_inertia_enabled_on`](#function-set_is_scroll_inertia_enabled_on)
- [`get_is_deferred_scrolling_enabled`](#function-get_is_deferred_scrolling_enabled)
- [`set_is_deferred_scrolling_enabled_on`](#function-set_is_deferred_scrolling_enabled_on)
- [`register_anchor_candidate`](#function-register_anchor_candidate)
- [`unregister_anchor_candidate`](#function-unregister_anchor_candidate)

<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/scroll_viewer.rs#L55)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### on_scroll_changed

```rust
fn on_scroll_changed(self: &Self, e: &ScrollChangedEventArgs)
```

Called when a change in scrolling state is detected, such as a
change in scroll position, extent, or viewport size.

If you override this method, call the parent implementation to
ensure that the `ScrollChanged` event is raised.

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

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

### TEMPLATE_PARTS

```rust
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
```

The named parts expected in the control template, in addition to
those of the base class.

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

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

### bring_into_view_on_focus_change_property

```rust
fn bring_into_view_on_focus_change_property() -> &'static AttachedProperty<bool>
```

Defines the `BringIntoViewOnFocusChange` property.

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

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

### extent_property

```rust
fn extent_property() -> &'static DirectProperty<ScrollViewer, Size>
```

Defines the `Extent` property.

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

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

### offset_property

```rust
fn offset_property() -> &'static StyledProperty<Vector>
```

Defines the `Offset` property.

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

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

### zoom_mode_property

```rust
fn zoom_mode_property() -> &'static StyledProperty<ZoomMode>
```

Defines the `ZoomMode` property (WinUI `ScrollViewer.ZoomMode`, not upstream): whether
the user can zoom the content.

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

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

### min_zoom_factor_property

```rust
fn min_zoom_factor_property() -> &'static StyledProperty<f32>
```

Defines the `MinZoomFactor` property (WinUI, not upstream).

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

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

### max_zoom_factor_property

```rust
fn max_zoom_factor_property() -> &'static StyledProperty<f32>
```

Defines the `MaxZoomFactor` property (WinUI, not upstream).

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

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

### zoom_factor_property

```rust
fn zoom_factor_property() -> &'static DirectProperty<ScrollViewer, f32>
```

Defines the `ZoomFactor` property (WinUI, not upstream): the zoom of the content,
changed with `change_view` or by the user.

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

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

### viewport_property

```rust
fn viewport_property() -> &'static DirectProperty<ScrollViewer, Size>
```

Defines the `Viewport` property.

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

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

### large_change_property

```rust
fn large_change_property() -> &'static DirectProperty<ScrollViewer, Size>
```

Defines the `LargeChange` property.

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

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

### small_change_property

```rust
fn small_change_property() -> &'static DirectProperty<ScrollViewer, Size>
```

Defines the `SmallChange` property.

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

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

### scroll_bar_maximum_property

```rust
fn scroll_bar_maximum_property() -> &'static DirectProperty<ScrollViewer, Vector>
```

Defines the `ScrollBarMaximum` property.

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

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

### horizontal_scroll_bar_visibility_property

```rust
fn horizontal_scroll_bar_visibility_property() -> &'static AttachedProperty<ScrollBarVisibility>
```

Defines the `HorizontalScrollBarVisibility` property.

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

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

### horizontal_snap_points_type_property

```rust
fn horizontal_snap_points_type_property() -> &'static AttachedProperty<SnapPointsType>
```

Defines the `HorizontalSnapPointsType` property.

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

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

### vertical_snap_points_type_property

```rust
fn vertical_snap_points_type_property() -> &'static AttachedProperty<SnapPointsType>
```

Defines the `VerticalSnapPointsType` property.

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

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

### horizontal_snap_points_alignment_property

```rust
fn horizontal_snap_points_alignment_property() -> &'static AttachedProperty<SnapPointsAlignment>
```

Defines the `HorizontalSnapPointsAlignment` property.

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

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

### vertical_snap_points_alignment_property

```rust
fn vertical_snap_points_alignment_property() -> &'static AttachedProperty<SnapPointsAlignment>
```

Defines the `VerticalSnapPointsAlignment` property.

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

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

### vertical_scroll_bar_visibility_property

```rust
fn vertical_scroll_bar_visibility_property() -> &'static AttachedProperty<ScrollBarVisibility>
```

Defines the `VerticalScrollBarVisibility` property.

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

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

### is_expanded_property

```rust
fn is_expanded_property() -> &'static DirectProperty<ScrollViewer, bool>
```

Defines the `IsExpanded` property.

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

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

### allow_auto_hide_property

```rust
fn allow_auto_hide_property() -> &'static AttachedProperty<bool>
```

Defines the `AllowAutoHide` property.

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

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

### is_scroll_chaining_enabled_property

```rust
fn is_scroll_chaining_enabled_property() -> &'static AttachedProperty<bool>
```

Defines the `IsScrollChainingEnabled` property.

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

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

### is_scroll_inertia_enabled_property

```rust
fn is_scroll_inertia_enabled_property() -> &'static AttachedProperty<bool>
```

Defines the `IsScrollInertiaEnabled` property.

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

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

### is_deferred_scrolling_enabled_property

```rust
fn is_deferred_scrolling_enabled_property() -> &'static AttachedProperty<bool>
```

Defines the `IsDeferredScrollingEnabled` property.

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

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

### scroll_changed_event

```rust
fn scroll_changed_event() -> &'static RoutedEvent<ScrollChangedEventArgs>
```

Defines the `ScrollChanged` event.

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

<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/scroll_viewer.rs#L527)

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

### new

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

Initializes a new instance of the class.

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

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

### scroll_changed

```rust
fn scroll_changed(self: &Self, handler: impl Fn(&Interactive, &ScrollChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Occurs when changes are detected to the scroll position, extent, or
viewport size.

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

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

### bring_into_view_on_focus_change

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

Gets a value that determines whether the scroll viewer uses a
bring-into-view scroll behavior when an item in the view gets focus.

True to use a behavior that brings focused items into view. False to
use a behavior that focused items do not automatically scroll into
view. The default is true.

The value can either be set explicitly on a scroll viewer, or the
attached `ScrollViewer.BringIntoViewOnFocusChange` property can be
set on an element that hosts a scroll viewer.

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

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

### set_bring_into_view_on_focus_change

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

Sets a value that determines whether the scroll viewer uses a
bring-into-view scroll behavior when an item in the view gets focus.

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

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

### extent

```rust
fn extent(self: &Self) -> Size
```

Gets the extent of the scrollable content.

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

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

### offset

```rust
fn offset(self: &Self) -> Vector
```

Gets the current scroll offset.

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

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

### set_offset

```rust
fn set_offset(self: &Self, value: Vector)
```

Sets the current scroll offset.

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

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

### viewport

```rust
fn viewport(self: &Self) -> Size
```

Gets the size of the viewport on the scrollable content.

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

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

### zoom_mode

```rust
fn zoom_mode(self: &Self) -> ZoomMode
```

`ZoomMode`: whether the user can zoom the content (Ctrl and the mouse wheel); a zoom
asked for by `change_view` is applied either way.

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

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

### set_zoom_mode

```rust
fn set_zoom_mode(self: &Self, value: ZoomMode)
```



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

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

### min_zoom_factor

```rust
fn min_zoom_factor(self: &Self) -> f32
```

`MinZoomFactor` (default 0.1).

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

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

### set_min_zoom_factor

```rust
fn set_min_zoom_factor(self: &Self, value: f32)
```



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

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

### max_zoom_factor

```rust
fn max_zoom_factor(self: &Self) -> f32
```

`MaxZoomFactor` (default 10).

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

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

### set_max_zoom_factor

```rust
fn set_max_zoom_factor(self: &Self, value: f32)
```



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

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

### zoom_factor

```rust
fn zoom_factor(self: &Self) -> f32
```

`ZoomFactor`: the zoom of the content (1 unless it was zoomed). The content keeps its
layout and is scaled about its top left corner; the extent and the offsets are in
zoomed units, as in WinUI.

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

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

### change_view

```rust
fn change_view(self: &Self, horizontal_offset: Option<f64>, vertical_offset: Option<f64>, zoom_factor: Option<f32>) -> bool
```

`ChangeView(horizontalOffset, verticalOffset, zoomFactor)`: scrolls and zooms the content
to the values given (`None` keeps the current one); the zoom factor is kept between the
minimum and the maximum, the offsets within the extent at that zoom. Returns `false` when
the scroll viewer has no scroll presenter to change.

Deviation (winui-composition.md): the change is applied at once; WinUI animates it unless
`disableAnimation` (see `change_view_with`).

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

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

### change_view_with

```rust
fn change_view_with(self: &Self, horizontal_offset: Option<f64>, vertical_offset: Option<f64>, zoom_factor: Option<f32>, _disable_animation: bool) -> bool
```

`ChangeView(horizontalOffset, verticalOffset, zoomFactor, disableAnimation)`.

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

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

### zoom_to_factor

```rust
fn zoom_to_factor(self: &Self, factor: f32)
```

`ZoomToFactor(factor)` (deprecated in WinUI for `ChangeView`): zooms to `factor`, keeping
the offsets.

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

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

### large_change

```rust
fn large_change(self: &Self) -> Size
```

Gets the large (page) change value for the scroll viewer.

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

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

### small_change

```rust
fn small_change(self: &Self) -> Size
```

Gets the small (line) change value for the scroll viewer.

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

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

### horizontal_scroll_bar_visibility

```rust
fn horizontal_scroll_bar_visibility(self: &Self) -> ScrollBarVisibility
```

Gets the horizontal scrollbar visibility.

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

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

### set_horizontal_scroll_bar_visibility

```rust
fn set_horizontal_scroll_bar_visibility(self: &Self, value: ScrollBarVisibility)
```

Sets the horizontal scrollbar visibility.

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

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

### vertical_scroll_bar_visibility

```rust
fn vertical_scroll_bar_visibility(self: &Self) -> ScrollBarVisibility
```

Gets the vertical scrollbar visibility.

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

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

### set_vertical_scroll_bar_visibility

```rust
fn set_vertical_scroll_bar_visibility(self: &Self, value: ScrollBarVisibility)
```

Sets the vertical scrollbar visibility.

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

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

### can_horizontally_scroll

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

Gets a value indicating whether the viewer can scroll horizontally.

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

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

### can_vertically_scroll

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

Gets a value indicating whether the viewer can scroll vertically.

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

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

### current_anchor

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

The currently chosen anchor element to use for scroll anchoring.

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

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

### scroll_bar_maximum

```rust
fn scroll_bar_maximum(self: &Self) -> Vector
```

Gets the maximum scrolling distance (which is the extent minus the
viewport).

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

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

### is_expanded

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

Gets a value that indicates whether any scrollbar is expanded.

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

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

### horizontal_snap_points_type

```rust
fn horizontal_snap_points_type(self: &Self) -> SnapPointsType
```

Gets how scroll gesture reacts to the snap points along the
horizontal axis.

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

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

### set_horizontal_snap_points_type

```rust
fn set_horizontal_snap_points_type(self: &Self, value: SnapPointsType)
```

Sets how scroll gesture reacts to the snap points along the
horizontal axis.

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

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

### vertical_snap_points_type

```rust
fn vertical_snap_points_type(self: &Self) -> SnapPointsType
```

Gets how scroll gesture reacts to the snap points along the vertical
axis.

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

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

### set_vertical_snap_points_type

```rust
fn set_vertical_snap_points_type(self: &Self, value: SnapPointsType)
```

Sets how scroll gesture reacts to the snap points along the vertical
axis.

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

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

### horizontal_snap_points_alignment

```rust
fn horizontal_snap_points_alignment(self: &Self) -> SnapPointsAlignment
```

Gets how the existing snap points are horizontally aligned versus the
initial viewport.

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

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

### set_horizontal_snap_points_alignment

```rust
fn set_horizontal_snap_points_alignment(self: &Self, value: SnapPointsAlignment)
```

Sets how the existing snap points are horizontally aligned versus the
initial viewport.

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

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

### vertical_snap_points_alignment

```rust
fn vertical_snap_points_alignment(self: &Self) -> SnapPointsAlignment
```

Gets how the existing snap points are vertically aligned versus the
initial viewport.

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

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

### set_vertical_snap_points_alignment

```rust
fn set_vertical_snap_points_alignment(self: &Self, value: SnapPointsAlignment)
```

Sets how the existing snap points are vertically aligned versus the
initial viewport.

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

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

### allow_auto_hide

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

Gets a value that indicates whether scrollbars can hide itself when
user is not interacting with it.

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

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

### set_allow_auto_hide

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

Sets a value that indicates whether scrollbars can hide itself when
user is not interacting with it.

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

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

### is_scroll_chaining_enabled

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

Gets if scroll chaining is enabled. The default value is true.

After a user hits a scroll limit on an element that has been nested
within another scrollable element, you can specify whether that
parent element should continue the scrolling operation begun in its
child element. This is called scroll chaining.

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

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

### set_is_scroll_chaining_enabled

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

Sets if scroll chaining is enabled.

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

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

### is_scroll_inertia_enabled

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

Gets whether scroll gestures should include inertia in their behavior
and value.

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

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

### set_is_scroll_inertia_enabled

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

Sets whether scroll gestures should include inertia in their behavior
and value.

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

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

### is_deferred_scrolling_enabled

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

Gets whether dragging of thumb elements should update the scroll
viewer only when the user releases the mouse.

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

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

### set_is_deferred_scrolling_enabled

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

Sets whether dragging of thumb elements should update the scroll
viewer only when the user releases the mouse.

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

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

### line_up

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

Scrolls the content up one line.

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

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

### line_down

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

Scrolls the content down one line.

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

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

### line_left

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

Scrolls the content left one line.

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

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

### line_right

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

Scrolls the content right one line.

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

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

### page_up

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

Scrolls the content upward by one page.

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

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

### page_down

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

Scrolls the content downward by one page.

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

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

### page_left

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

Scrolls the content left by one page.

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

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

### page_right

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

Scrolls the content right by one page.

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

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

### scroll_to_home

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

Scrolls to the top-left corner of the content.

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

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

### scroll_to_end

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

Scrolls to the bottom-left corner of the content.

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

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

### get_bring_into_view_on_focus_change

```rust
fn get_bring_into_view_on_focus_change(control: &Control) -> bool
```

Gets the value of the `BringIntoViewOnFocusChange` attached property
of `control`.

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

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

### set_bring_into_view_on_focus_change_on

```rust
fn set_bring_into_view_on_focus_change_on(control: &Control, value: bool)
```

Sets the value of the `BringIntoViewOnFocusChange` attached property
on `control`.

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

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

### get_horizontal_scroll_bar_visibility

```rust
fn get_horizontal_scroll_bar_visibility(control: &Control) -> ScrollBarVisibility
```

Gets the value of the `HorizontalScrollBarVisibility` attached
property of `control`.

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

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

### set_horizontal_scroll_bar_visibility_on

```rust
fn set_horizontal_scroll_bar_visibility_on(control: &Control, value: ScrollBarVisibility)
```

Sets the value of the `HorizontalScrollBarVisibility` attached
property on `control`.

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

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

### get_horizontal_snap_points_type

```rust
fn get_horizontal_snap_points_type(control: &Control) -> SnapPointsType
```

Gets the value of the `HorizontalSnapPointsType` attached property of
`control`.

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

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

### set_horizontal_snap_points_type_on

```rust
fn set_horizontal_snap_points_type_on(control: &Control, value: SnapPointsType)
```

Sets the value of the `HorizontalSnapPointsType` attached property on
`control`.

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

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

### get_vertical_snap_points_type

```rust
fn get_vertical_snap_points_type(control: &Control) -> SnapPointsType
```

Gets the value of the `VerticalSnapPointsType` attached property of
`control`.

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

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

### set_vertical_snap_points_type_on

```rust
fn set_vertical_snap_points_type_on(control: &Control, value: SnapPointsType)
```

Sets the value of the `VerticalSnapPointsType` attached property on
`control`.

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

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

### get_horizontal_snap_points_alignment

```rust
fn get_horizontal_snap_points_alignment(control: &Control) -> SnapPointsAlignment
```

Gets the value of the `HorizontalSnapPointsAlignment` attached
property of `control`.

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

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

### set_horizontal_snap_points_alignment_on

```rust
fn set_horizontal_snap_points_alignment_on(control: &Control, value: SnapPointsAlignment)
```

Sets the value of the `HorizontalSnapPointsAlignment` attached
property on `control`.

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

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

### get_vertical_snap_points_alignment

```rust
fn get_vertical_snap_points_alignment(control: &Control) -> SnapPointsAlignment
```

Gets the value of the `VerticalSnapPointsAlignment` attached property
of `control`.

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

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

### set_vertical_snap_points_alignment_on

```rust
fn set_vertical_snap_points_alignment_on(control: &Control, value: SnapPointsAlignment)
```

Sets the value of the `VerticalSnapPointsAlignment` attached property
on `control`.

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

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

### get_vertical_scroll_bar_visibility

```rust
fn get_vertical_scroll_bar_visibility(control: &Control) -> ScrollBarVisibility
```

Gets the value of the `VerticalScrollBarVisibility` attached property
of `control`.

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

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

### set_allow_auto_hide_on

```rust
fn set_allow_auto_hide_on(control: &Control, value: bool)
```

Sets the value of the `AllowAutoHide` attached property on `control`.

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

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

### get_allow_auto_hide

```rust
fn get_allow_auto_hide(control: &Control) -> bool
```

Gets the value of the `AllowAutoHide` attached property of `control`.

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

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

### set_is_scroll_chaining_enabled_on

```rust
fn set_is_scroll_chaining_enabled_on(control: &Control, value: bool)
```

Sets the value of the `IsScrollChainingEnabled` attached property on
`control`.

After a user hits a scroll limit on an element that has been nested
within another scrollable element, you can specify whether that
parent element should continue the scrolling operation begun in its
child element. This is called scroll chaining.

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

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

### get_is_scroll_chaining_enabled

```rust
fn get_is_scroll_chaining_enabled(control: &Control) -> bool
```

Gets the value of the `IsScrollChainingEnabled` attached property of
`control`.

After a user hits a scroll limit on an element that has been nested
within another scrollable element, you can specify whether that
parent element should continue the scrolling operation begun in its
child element. This is called scroll chaining.

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

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

### set_vertical_scroll_bar_visibility_on

```rust
fn set_vertical_scroll_bar_visibility_on(control: &Control, value: ScrollBarVisibility)
```

Sets the value of the `VerticalScrollBarVisibility` attached property
on `control`.

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

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

### get_is_scroll_inertia_enabled

```rust
fn get_is_scroll_inertia_enabled(control: &Control) -> bool
```

Gets whether scroll gestures should include inertia in their behavior
and value.

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

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

### set_is_scroll_inertia_enabled_on

```rust
fn set_is_scroll_inertia_enabled_on(control: &Control, value: bool)
```

Sets whether scroll gestures should include inertia in their behavior
and value.

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

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

### get_is_deferred_scrolling_enabled

```rust
fn get_is_deferred_scrolling_enabled(control: &Control) -> bool
```

Gets whether dragging of thumb elements should update the scroll
viewer only when the user releases the mouse.

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

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

### set_is_deferred_scrolling_enabled_on

```rust
fn set_is_deferred_scrolling_enabled_on(control: &Control, value: bool)
```

Sets whether dragging of thumb elements should update the scroll
viewer only when the user releases the mouse.

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

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

### register_anchor_candidate

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

Registers a control as a potential scroll anchor candidate.

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

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

### unregister_anchor_candidate

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

Unregisters a control as a potential scroll anchor candidate.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ContentControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`ScrollViewerImplExt`](/docs/0.5.0/api/ferroui-controls/trait-scrollviewerimplext/)
- `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<ScrollViewer>`](/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/)
- [`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/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`ScrollViewerImpl`](/docs/0.5.0/api/ferroui-controls/trait-scrollviewerimpl/)
- [`IScrollable`](/docs/0.5.0/api/ferroui-base/input/trait-iscrollable/)
- [`IScrollAnchorProvider`](/docs/0.5.0/api/ferroui-controls/trait-iscrollanchorprovider/)

## Availability

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