FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyBindingEditor

    struct · ferroui-designer · v0.5.0

    struct PropertyBindingEditor
    

    Native structured controls and an exact-expression fallback. value() accepts either the fields or the expression. When both were edited, the user must reload the fields explicitly, preventing a stale form from overwriting a newer expression.

    View source

    Members

    new

    fn new(source: Option<&str>, binding_extension: &str, named_elements: &[String]) -> Rc<Self>
    

    Create an unscoped editor. Relative-source creation requires the independently resolved extension supplied by with_relative_source_extension.

    Source

    with_relative_source_extension

    fn with_relative_source_extension(source: Option<&str>, binding_extension: &str, relative_source_extension: Option<&str>, named_elements: &[String]) -> Rc<Self>
    

    Use independently resolved markup names when embedding in a XAML namespace scope.

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    value

    fn value(self: &Self) -> Result<String, String>
    

    Return the staged expression. No runtime object or source document is mutated.

    Source

    set_expression

    fn set_expression(self: &Self, value: &str)
    

    Replace the entire local draft and populate its structured fields.

    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
    • Same

    Availability

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