# OpenFolderPickerBehaviorBase

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

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

```rust
struct OpenFolderPickerBehaviorBase
```

Open folder picker behavior base: a behavior that opens a folder picker dialog when the deriving
class calls `execute`.

The picked folders (`Vec<StorageFolderRef>`) are given to the handlers of `pick` and,
unless a handler handled them, to the command.

The class is abstract.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L24)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`on_pick`](#function-on_pick)
- [`allow_multiple_property`](#function-allow_multiple_property)
- [`construct`](#function-construct)
- [`pick`](#function-pick)
- [`allow_multiple`](#function-allow_multiple)
- [`set_allow_multiple`](#function-set_allow_multiple)
- [`execute`](#function-execute)

<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/storage_provider/open_folder_picker_behavior_base.rs#L29)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L29)

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

### on_pick

```rust
fn on_pick(self: &Self, args: &FolderPickerEventArgs)
```

Raises the `pick` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L29)

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

### allow_multiple_property

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

Identifies the `AllowMultiple` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L37)

<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/storage_provider/open_folder_picker_behavior_base.rs#L66)

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

### pick

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

Occurs after the folder picker successfully returns one or more folders. Disposing the returned
handle removes the handler.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L72)

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

### allow_multiple

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

Gets or sets an option indicating whether the open picker allows users to select multiple
folders. This is a property of the object model.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L84)

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

### set_allow_multiple

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L88)

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

### execute

```rust
async fn execute(self: &Self, sender: Option<&BoxedValue>, _parameter: Option<&BoxedValue>)
```

Executes the open folder picker using the provided sender and command parameter: does
nothing when the sender is not a visual.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions/storage_provider/open_folder_picker_behavior_base.rs#L94)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`OpenFolderPickerBehaviorBaseImplExt`](/docs/0.5.0/api/ferroui-xaml-interactions/trait-openfolderpickerbehaviorbaseimplext/)
- `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<OpenFolderPickerBehaviorBase>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`StyledElementBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-styledelementbehaviorimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`OpenFolderPickerBehaviorBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactions/trait-openfolderpickerbehaviorbaseimpl/)

## Availability

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