# MaterialSearchView

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/struct-materialsearchview/

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

```rust
struct MaterialSearchView
```

A 56dp search field with an animated docked results surface.
`Content` supplies the application's results; `Query` is two-way bindable.
Query submission is a routed event, so filtering can remain in the view model.
The same TextBox survives expansion, preserving composition, undo and selection.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`query_property`](#function-query_property)
- [`placeholder_text_property`](#function-placeholder_text_property)
- [`is_expanded_property`](#function-is_expanded_property)
- [`expand_on_focus_property`](#function-expand_on_focus_property)
- [`max_expanded_height_property`](#function-max_expanded_height_property)
- [`reduced_motion_property`](#function-reduced_motion_property)
- [`motion_scheme_property`](#function-motion_scheme_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`query`](#function-query)
- [`set_query`](#function-set_query)
- [`placeholder_text`](#function-placeholder_text)
- [`set_placeholder_text`](#function-set_placeholder_text)
- [`is_expanded`](#function-is_expanded)
- [`set_is_expanded`](#function-set_is_expanded)
- [`expand_on_focus`](#function-expand_on_focus)
- [`set_expand_on_focus`](#function-set_expand_on_focus)
- [`max_expanded_height`](#function-max_expanded_height)
- [`set_max_expanded_height`](#function-set_max_expanded_height)
- [`reduced_motion`](#function-reduced_motion)
- [`set_reduced_motion`](#function-set_reduced_motion)
- [`motion_scheme`](#function-motion_scheme)
- [`set_motion_scheme`](#function-set_motion_scheme)
- [`editor`](#function-editor)
- [`expand`](#function-expand)
- [`collapse`](#function-collapse)
- [`clear_query`](#function-clear_query)
- [`submit_query`](#function-submit_query)
- [`query_submitted_event`](#function-query_submitted_event)
- [`query_submitted`](#function-query_submitted)

<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.Themes.Material/search_view.rs#L57)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L57)

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

### query_property

```rust
fn query_property() -> &'static StyledProperty<Option<String>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### placeholder_text_property

```rust
fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### is_expanded_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### expand_on_focus_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### max_expanded_height_property

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

Optional tighter limit; the native maximum is two thirds of the window height.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### reduced_motion_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### motion_scheme_property

```rust
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L64)

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

### construct

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L301)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L323)

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

### query

```rust
fn query(self: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L326)

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

### set_query

```rust
fn set_query(self: &Self, query: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L329)

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

### placeholder_text

```rust
fn placeholder_text(self: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L332)

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

### set_placeholder_text

```rust
fn set_placeholder_text(self: &Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L335)

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

### is_expanded

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L338)

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

### set_is_expanded

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L341)

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

### expand_on_focus

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L344)

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

### set_expand_on_focus

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L347)

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

### max_expanded_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L350)

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

### set_max_expanded_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L353)

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

### reduced_motion

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L356)

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

### set_reduced_motion

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L359)

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

### motion_scheme

```rust
fn motion_scheme(self: &Self) -> MaterialMotionScheme
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L362)

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

### set_motion_scheme

```rust
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L365)

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

### editor

```rust
fn editor(self: &Self) -> Option<Ref<TextBox>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L368)

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

### expand

```rust
fn expand(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L371)

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

### collapse

```rust
fn collapse(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L374)

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

### clear_query

```rust
fn clear_query(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L382)

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

### submit_query

```rust
fn submit_query(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L388)

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

### query_submitted_event

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L394)

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

### query_submitted

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/search_view.rs#L402)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- [`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/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MaterialSearchView>`](/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/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`ContentControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-contentcontrolimpl/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)

## Availability

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