FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MarkupExtension

    trait · ferroui-markup-xaml · v0.5.0

    trait MarkupExtension
    

    The base of markup extensions: objects that provide the value of a property in markup ({StaticResource Key}).

    A type is a markup extension if its metadata declares a ProvideValue method; implementing this trait is the equivalent of deriving from the abstract base class.

    View source

    Members

    provide_value

    fn provide_value(self: &Self, service_provider: &Rc<dyn IServiceProvider>) -> Result<Option<BoxedValue>, XamlLoadError>
    

    Returns the object to set on the target property. Null is None.

    Source

    Availability

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