FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyBindingDraft

    struct · ferroui-designer · v0.5.0

    struct PropertyBindingDraft
    

    Edits only arguments that were explicitly changed. Unknown arguments, nested extensions, aliases, quoting and spacing in every untouched argument are retained. binding_extension must be the host's namespace-resolved framework extension; an application extension with the same local name is deliberately not accepted.

    View source

    Members

    new

    fn new(source: &str, binding_extension: &str) -> Result<Self, String>
    

    Source

    empty

    fn empty(binding_extension: &str) -> Result<Self, String>
    

    Source

    with_relative_source_extension

    fn with_relative_source_extension(self: Self, name: Option<&str>) -> Self
    

    Supply the independently namespace-resolved RelativeSource extension. A CLR alias for Binding does not necessarily expose RelativeSource in the same scope. None keeps existing expressions available but disables creating relative sources.

    Source

    source

    fn source(self: &Self) -> String
    

    Source

    argument

    fn argument(self: &Self, name: &str) -> Option<&MarkupValue>
    

    Source

    literal

    fn literal(self: &Self, name: &str) -> Option<&str>
    

    Source

    set_path

    fn set_path(self: &mut Self, path: &str)
    

    Source

    set_mode

    fn set_mode(self: &mut Self, mode: &str) -> Result<(), String>
    

    Source

    set_update_source_trigger

    fn set_update_source_trigger(self: &mut Self, trigger: &str) -> Result<(), String>
    

    Source

    set_delay

    fn set_delay(self: &mut Self, delay: Option<i32>) -> Result<(), String>
    

    Source

    set_option

    fn set_option(self: &mut Self, option: PropertyBindingOption, value: Option<MarkupValue>) -> Result<(), String>
    

    Source

    set_source

    fn set_source(self: &mut Self, source: PropertyBindingSource) -> Result<(), String>
    

    Source

    source_specification

    fn source_specification(self: &Self) -> Option<PropertyBindingSource>
    

    Recognized source fields can be populated by an editor; unknown relative-source extensions remain exact source until the user explicitly chooses another source.

    Source

    validate

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

    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

    Availability

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