# IPopupHostProvider

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

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

```rust
trait IPopupHostProvider
```

Diagnostics interface to retrieve an associated [`IPopupHost`](/docs/0.5.0/api/ferroui-controls/primitives/trait-ipopuphost/) (internal
upstream).

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

## Members

- [`popup_host`](#function-popup_host)
- [`popup_host_changed`](#function-popup_host_changed)

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

### popup_host

```rust
fn popup_host(self: &Self) -> Option<Rc<dyn IPopupHost>>
```

The popup host.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/diagnostics/i_popup_host_provider.rs#L9)

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

### popup_host_changed

```rust
fn popup_host_changed(self: &Self, handler: Rc<dyn Fn(Option<&Rc<dyn IPopupHost>>) -> ()>) -> Rc<dyn IDisposable>
```

Raised when the popup host changes. Disposing the returned handle
unsubscribes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/diagnostics/i_popup_host_provider.rs#L13)

## Availability

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