# GridSplitterImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-gridsplitterimpl/

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

```rust
trait GridSplitterImpl: ThumbImpl + $crate::Upcast<GridSplitter>
```

The overridable members introduced by the class.

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

## Members

- [`get_parent_grid`](#function-get_parent_grid)
- [`get_properties_value_source`](#function-get_properties_value_source)

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

### get_parent_grid

```rust
fn get_parent_grid(this: &Self) -> Option<Ref<Grid>>
```

Retrieves the `Grid` that ultimately hosts this splitter in the
visual/logical tree.

A splitter can be placed directly inside a grid or indirectly
inside an items control that uses a grid as its items panel. In
the latter case the first logical parent is usually a content
presenter (or the items control itself), so the method walks
these intermediate containers to locate the underlying grid.

Returns the containing grid if one is found.

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

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

### get_properties_value_source

```rust
fn get_properties_value_source(this: &Self) -> Ref<StyledElement>
```

Returns the element that carries the grid-attached properties
(`Grid.Row`, `Grid.Column`, etc.) relevant to this splitter.

When the splitter is generated as part of an items control
template, the attached properties are set on the surrounding
content presenter rather than on the splitter itself. This helper
selects that presenter when appropriate so subsequent property
look-ups read the correct values; otherwise it simply returns
the splitter.

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

## Trait implementations

- [`GridSplitterImpl`](/docs/0.5.0/api/ferroui-controls/trait-gridsplitterimpl/)

## Availability

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