# PropertyEditorFactory

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/trait-propertyeditorfactory/

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

```rust
trait PropertyEditorFactory
```

Return a native control when this factory handles the property; otherwise let the next
factory try. Hosts register factories in priority order on [`crate::DesignerWorkspace`](/docs/0.5.0/api/ferroui-designer/struct-designerworkspace/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/editors.rs#L53)

## Members

- [`create`](#function-create)
- [`create_with_metadata`](#function-create_with_metadata)

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

### create

```rust
fn create(self: &Self, _context: &PropertyEditorContext) -> Option<Ref<Control>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/editors.rs#L54)

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

### create_with_metadata

```rust
fn create_with_metadata(self: &Self, context: &PropertyEditorContext, _metadata: &PropertyEditorMetadata) -> Option<Ref<Control>>
```

Metadata-aware factories can inspect real enum members, source origin, resource
scope and an object draft. Existing factories continue to receive guarded values.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/editors.rs#L59)

## Availability

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