# SplitView

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-splitview/

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

```rust
struct SplitView
```

A control with two views: a collapsible pane and an area for content.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L39)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`on_pane_opening`](#function-on_pane_opening)
- [`on_pane_opened`](#function-on_pane_opened)
- [`on_pane_closing`](#function-on_pane_closing)
- [`on_pane_closed`](#function-on_pane_closed)
- [`on_coerce_is_pane_open`](#function-on_coerce_is_pane_open)
- [`compact_pane_length_property`](#function-compact_pane_length_property)
- [`display_mode_property`](#function-display_mode_property)
- [`is_pane_open_property`](#function-is_pane_open_property)
- [`open_pane_length_property`](#function-open_pane_length_property)
- [`pane_background_property`](#function-pane_background_property)
- [`pane_placement_property`](#function-pane_placement_property)
- [`pane_property`](#function-pane_property)
- [`pane_template_property`](#function-pane_template_property)
- [`use_light_dismiss_overlay_mode_property`](#function-use_light_dismiss_overlay_mode_property)
- [`template_settings_property`](#function-template_settings_property)
- [`pane_closed_event`](#function-pane_closed_event)
- [`pane_closing_event`](#function-pane_closing_event)
- [`pane_opened_event`](#function-pane_opened_event)
- [`pane_opening_event`](#function-pane_opening_event)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`compact_pane_length`](#function-compact_pane_length)
- [`set_compact_pane_length`](#function-set_compact_pane_length)
- [`display_mode`](#function-display_mode)
- [`set_display_mode`](#function-set_display_mode)
- [`is_pane_open`](#function-is_pane_open)
- [`set_is_pane_open`](#function-set_is_pane_open)
- [`open_pane_length`](#function-open_pane_length)
- [`set_open_pane_length`](#function-set_open_pane_length)
- [`pane_background`](#function-pane_background)
- [`set_pane_background`](#function-set_pane_background)
- [`pane_placement`](#function-pane_placement)
- [`set_pane_placement`](#function-set_pane_placement)
- [`pane`](#function-pane)
- [`set_pane`](#function-set_pane)
- [`pane_template`](#function-pane_template)
- [`set_pane_template`](#function-set_pane_template)
- [`use_light_dismiss_overlay_mode`](#function-use_light_dismiss_overlay_mode)
- [`set_use_light_dismiss_overlay_mode`](#function-set_use_light_dismiss_overlay_mode)
- [`template_settings`](#function-template_settings)
- [`pane_closed`](#function-pane_closed)
- [`pane_closing`](#function-pane_closing)
- [`pane_opened`](#function-pane_opened)
- [`pane_opening`](#function-pane_opening)

<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/FerroUI.Controls/split_view/split_view.rs#L48)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### on_pane_opening

```rust
fn on_pane_opening(self: &Self, args: &CancelRoutedEventArgs)
```

Raises the `PaneOpening` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### on_pane_opened

```rust
fn on_pane_opened(self: &Self, args: &RoutedEventArgs)
```

Raises the `PaneOpened` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### on_pane_closing

```rust
fn on_pane_closing(self: &Self, args: &CancelRoutedEventArgs)
```

Raises the `PaneClosing` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### on_pane_closed

```rust
fn on_pane_closed(self: &Self, args: &RoutedEventArgs)
```

Raises the `PaneClosed` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### on_coerce_is_pane_open

```rust
fn on_coerce_is_pane_open(self: &Self, value: bool) -> bool
```

Called when the `IsPaneOpen` property has to be coerced.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L48)

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

### compact_pane_length_property

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

Defines the `CompactPaneLength` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### display_mode_property

```rust
fn display_mode_property() -> &'static StyledProperty<SplitViewDisplayMode>
```

Defines the `DisplayMode` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### is_pane_open_property

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

Defines the `IsPaneOpen` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### open_pane_length_property

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

Defines the `OpenPaneLength` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### pane_background_property

```rust
fn pane_background_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```

Defines the `PaneBackground` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### pane_placement_property

```rust
fn pane_placement_property() -> &'static StyledProperty<SplitViewPanePlacement>
```

Defines the `PanePlacement` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### pane_property

```rust
fn pane_property() -> &'static StyledProperty<Option<BoxedValue>>
```

Defines the `Pane` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### pane_template_property

```rust
fn pane_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
```

Defines the `PaneTemplate` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### use_light_dismiss_overlay_mode_property

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

Defines the `UseLightDismissOverlayMode` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### template_settings_property

```rust
fn template_settings_property() -> &'static DirectProperty<SplitView, Ref<SplitViewTemplateSettings>>
```

Defines the `TemplateSettings` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L202)

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

### pane_closed_event

```rust
fn pane_closed_event() -> &'static RoutedEvent<RoutedEventArgs>
```

Defines the `PaneClosed` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L265)

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

### pane_closing_event

```rust
fn pane_closing_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
```

Defines the `PaneClosing` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L272)

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

### pane_opened_event

```rust
fn pane_opened_event() -> &'static RoutedEvent<RoutedEventArgs>
```

Defines the `PaneOpened` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L279)

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

### pane_opening_event

```rust
fn pane_opening_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
```

Defines the `PaneOpening` event.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L286)

<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/FerroUI.Controls/split_view/split_view.rs#L294)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L305)

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

### compact_pane_length

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

The length of the pane when in the compact overlay or the compact
inline mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L311)

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

### set_compact_pane_length

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L315)

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

### display_mode

```rust
fn display_mode(self: &Self) -> SplitViewDisplayMode
```

The display mode of the split view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L320)

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

### set_display_mode

```rust
fn set_display_mode(self: &Self, value: SplitViewDisplayMode)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L324)

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

### is_pane_open

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

Whether the pane is open or closed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L329)

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

### set_is_pane_open

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L333)

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

### open_pane_length

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

The length of the pane when open.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L338)

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

### set_open_pane_length

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L342)

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

### pane_background

```rust
fn pane_background(self: &Self) -> Option<Rc<dyn IBrush>>
```

The background of the pane.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L347)

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

### set_pane_background

```rust
fn set_pane_background(self: &Self, value: Option<Rc<dyn IBrush>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L351)

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

### pane_placement

```rust
fn pane_placement(self: &Self) -> SplitViewPanePlacement
```

The placement of the pane.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L356)

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

### set_pane_placement

```rust
fn set_pane_placement(self: &Self, value: SplitViewPanePlacement)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L360)

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

### pane

```rust
fn pane(self: &Self) -> Option<BoxedValue>
```

The pane of the split view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L365)

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

### set_pane

```rust
fn set_pane(self: &Self, value: Option<BoxedValue>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L369)

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

### pane_template

```rust
fn pane_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
```

The data template used to display the pane content of the control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L374)

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

### set_pane_template

```rust
fn set_pane_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L378)

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

### use_light_dismiss_overlay_mode

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

Whether the light dismiss overlay mode is enabled.

When enabled, and the pane is open in the overlay or the compact
overlay mode, the contents of the split view are darkened to visually
separate the open pane and the rest of the split view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L387)

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

### set_use_light_dismiss_overlay_mode

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L391)

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

### template_settings

```rust
fn template_settings(self: &Self) -> Ref<SplitViewTemplateSettings>
```

The template settings of the split view.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L396)

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

### pane_closed

```rust
fn pane_closed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Fired when the pane is closed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L401)

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

### pane_closing

```rust
fn pane_closing(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Fired when the pane is closing.

The `cancel` property of the event args may be set to true to cancel
the event and keep the pane open.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L409)

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

### pane_opened

```rust
fn pane_opened(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Fired when the pane is opened.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L417)

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

### pane_opening

```rust
fn pane_opening(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
```

Fired when the pane is opening.

The `cancel` property of the event args may be set to true to cancel
the event and keep the pane closed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/split_view/split_view.rs#L425)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`TemplatedControlImplExt`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimplext/)
- [`ContentControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimplext/)
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`SplitViewImplExt`](/docs/0.5.0/api/ferroui-controls/trait-splitviewimplext/)
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`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/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<SplitView>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`SplitViewImpl`](/docs/0.5.0/api/ferroui-controls/trait-splitviewimpl/)

## Availability

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