# ManagedFileDialogOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dialogs/struct-managedfiledialogoptions/

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

```rust
struct ManagedFileDialogOptions
```

The options of the managed file dialogs.

A record: a copy with a member changed is made with `Clone` and the
setter (the `with` expression of the original).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L11)

## Members

- [`new`](#function-new)
- [`allow_directory_selection`](#function-allow_directory_selection)
- [`set_allow_directory_selection`](#function-set_allow_directory_selection)
- [`custom_volume_info_provider`](#function-custom_volume_info_provider)
- [`set_custom_volume_info_provider`](#function-set_custom_volume_info_provider)
- [`content_root_factory`](#function-content_root_factory)
- [`set_content_root_factory`](#function-set_content_root_factory)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L18)

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

### allow_directory_selection

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L22)

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

### set_allow_directory_selection

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L26)

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

### custom_volume_info_provider

```rust
fn custom_volume_info_provider(self: &Self) -> Option<&Rc<dyn IMountedVolumeInfoProvider>>
```

Allows to redefine how root volumes are populated in the dialog.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L31)

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

### set_custom_volume_info_provider

```rust
fn set_custom_volume_info_provider(self: &mut Self, value: Option<Rc<dyn IMountedVolumeInfoProvider>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L35)

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

### content_root_factory

```rust
fn content_root_factory(self: &Self) -> Option<&Rc<dyn Fn() -> Ref<ContentControl>>>
```

Allows to redefine content root.
Can be a custom Window or any ContentControl (Popup hosted).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L41)

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

### set_content_root_factory

```rust
fn set_content_root_factory(self: &mut Self, value: Option<Rc<dyn Fn() -> Ref<ContentControl>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Dialogs/managed_file_dialog_options.rs#L45)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`
- `PartialEq`

## Availability

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