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.
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.
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.
control
fn control(self: &Self) -> Ref<Control>
value
fn value(self: &Self) -> Result<String, String>
Return the staged expression. No runtime object or source document is mutated.
set_expression
fn set_expression(self: &Self, value: &str)
Replace the entire local draft and populate its structured fields.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSame
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.