FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PreviewHostOptions

    struct · ferroui-designer · v0.5.0

    struct PreviewHostOptions
    

    View source

    Members

    register_types

    register_types: Vec<std::rc::Rc<dyn Fn() -> ()>>
    

    Runtime metadata registration (custom controls, converters, attached properties).

    Source

    root_factories

    root_factories: std::collections::BTreeMap<String, PreviewFactory>
    

    Keys may be x:Class names or namespace-qualified root type names.

    Source

    resource_factory

    resource_factory: Option<ResourcePreviewFactory>
    

    Resource dictionaries, application resources, styles and custom native Window roots can use a host-chosen artboard view. The actual Window remains available in native preview.

    Source

    configuration

    configuration: ferroui_markup_xaml::RuntimeXamlLoaderConfiguration
    

    Source

    design_time_data

    design_time_data: bool
    

    Show authored d: values and sample data in this designer host. This option is independent from the normal runtime loader and never changes saved XAML.

    Source

    register_root

    fn register_root(self: &mut Self, key: impl Into<String>, factory: PreviewFactory)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • Clone
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.