PreviewHostOptions
struct · ferroui-designer · v0.5.0
struct PreviewHostOptions
Members
register_types
register_types: Vec<std::rc::Rc<dyn Fn() -> ()>>
Runtime metadata registration (custom controls, converters, attached properties).
root_factories
root_factories: std::collections::BTreeMap<String, PreviewFactory>
Keys may be x:Class names or namespace-qualified root type names.
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.
configuration
configuration: ferroui_markup_xaml::RuntimeXamlLoaderConfiguration
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.
register_root
fn register_root(self: &mut Self, key: impl Into<String>, factory: PreviewFactory)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherSameCloneDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.