# PageFactory

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/type_alias-pagefactory/

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

```rust
type PageFactory = dyn Fn() -> Result<ferroui_base::Ref<crate::FramePage>, crate::navigation::NavigationError>
```

Creates the pages of a type for a [`Frame`](/docs/0.5.0/api/ferroui-controls/struct-frame/) (`Frame::register_page_factory`), with a recoverable
error, in place of the default constructor of the type.

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

## Availability

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