# HorizontalScrollViewerBehavior

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-custom/struct-horizontalscrollviewerbehavior/

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

```rust
struct HorizontalScrollViewerBehavior
```

Enables horizontal scrolling of a `ScrollViewer` using the mouse wheel.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L41)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`require_shift_key_property`](#function-require_shift_key_property)
- [`scroll_change_size_property`](#function-scroll_change_size_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`require_shift_key`](#function-require_shift_key)
- [`set_require_shift_key`](#function-set_require_shift_key)
- [`scroll_change_size`](#function-scroll_change_size)
- [`set_scroll_change_size`](#function-set_scroll_change_size)

<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/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L48)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L48)

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

### require_shift_key_property

```rust
fn require_shift_key_property() -> &'static StyledProperty<bool>
```

Gets or sets a value indicating whether the Shift key must be held while scrolling.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L52)

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

### scroll_change_size_property

```rust
fn scroll_change_size_property() -> &'static StyledProperty<ChangeSize>
```

Gets or sets the scroll amount used for each wheel delta.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L52)

<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/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L101)

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

### new

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

Creates a behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L109)

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

### require_shift_key

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

Whether the Shift key must be held while scrolling.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L114)

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

### set_require_shift_key

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L118)

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

### scroll_change_size

```rust
fn scroll_change_size(self: &Self) -> ChangeSize
```

The scroll amount used for each wheel delta.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L123)

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

### set_scroll_change_size

```rust
fn set_scroll_change_size(self: &Self, value: ChangeSize)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/scroll_viewer/horizontal_scroll_viewer_behavior.rs#L127)

## 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`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- [`StyledElementBehaviorImplExt`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<HorizontalScrollViewerBehavior>`](/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/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`StyledElementBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimpl/)

## Availability

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