FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContentReloadTarget

    struct · ferroui-hot-reload · v0.5.0

    struct ContentReloadTarget
    

    Reloads a classless document inside a stable host. The host and its data context survive. Custom x:Class roots need an application adapter that refreshes their cached references.

    View source

    Members

    new

    fn new(host: &Ref<ContentControl>, uri: String, dependencies: Vec<String>, configuration: RuntimeXamlLoaderConfiguration) -> Self
    

    Source

    with_state_adapter

    fn with_state_adapter(self: Self, adapter: Rc<dyn crate::ControlStateAdapter>) -> Self
    

    Add application state transfer for uniquely identified, compatible controls. Restoration runs after a successful revision, alongside built-in state transfer.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • ReloadTarget

    Availability

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