# AutoScrollDuringDragBehavior

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

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

```rust
struct AutoScrollDuringDragBehavior
```

Automatically scrolls the associated `ScrollViewer` when the pointer is dragged near its
edges.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L20)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`edge_distance_property`](#function-edge_distance_property)
- [`scroll_delta_property`](#function-scroll_delta_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`edge_distance`](#function-edge_distance)
- [`set_edge_distance`](#function-set_edge_distance)
- [`scroll_delta`](#function-scroll_delta)
- [`set_scroll_delta`](#function-set_scroll_delta)

<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.Draggable/auto_scroll_during_drag_behavior.rs#L26)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L26)

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

### edge_distance_property

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

Identifies the `EdgeDistance` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L30)

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

### scroll_delta_property

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

Identifies the `ScrollDelta` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L30)

<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.Draggable/auto_scroll_during_drag_behavior.rs#L145)

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

### new

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

Creates the behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L154)

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

### edge_distance

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

Gets or sets the distance from the edge that triggers scrolling.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L159)

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

### set_edge_distance

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L163)

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

### scroll_delta

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

Gets or sets the amount scrolled when triggered.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L168)

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

### set_scroll_delta

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Draggable/auto_scroll_during_drag_behavior.rs#L172)

## 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<AutoScrollDuringDragBehavior>`](/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/).
