# ContextDropBehaviorBaseImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdropbehaviorbaseimpl/

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

```rust
trait ContextDropBehaviorBaseImpl: StyledElementBehaviorImpl + $crate::Upcast<ContextDropBehaviorBase>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/context_drop_behavior_base.rs#L27)

## Members

- [`on_enter`](#function-on_enter)
- [`on_leave`](#function-on_leave)
- [`on_over`](#function-on_over)
- [`on_drop`](#function-on_drop)

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

### on_enter

```rust
fn on_enter(this: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
```

Called when a drag enters the target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/context_drop_behavior_base.rs#L27)

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

### on_leave

```rust
fn on_leave(this: &Self, sender: Option<&BoxedValue>, e: &RoutedEventArgs)
```

Called when the drag leaves the target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/context_drop_behavior_base.rs#L27)

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

### on_over

```rust
fn on_over(this: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
```

Called repeatedly as the drag moves over the target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/context_drop_behavior_base.rs#L27)

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

### on_drop

```rust
fn on_drop(this: &Self, sender: Option<&BoxedValue>, e: &DragEventArgs, source_context: Option<&BoxedValue>, target_context: Option<&BoxedValue>)
```

Called when the drag is dropped on the target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.DragAndDrop/context_drop_behavior_base.rs#L27)

## Trait implementations

- [`ContextDropBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-draganddrop/trait-contextdropbehaviorbaseimpl/)

## Availability

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